220 32507 <CAFk2RUas7u5rzMdxdAZZ_qFxhN9rFfvw7Betfo06XoOjwZh0nQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Allow Structured Binding Outside of Variable Declaration
Date: Wed, 17 May 2017 02:17:10 +0300
Lines: 30
Approved: news@gmane.org
Message-ID: <CAFk2RUas7u5rzMdxdAZZ_qFxhN9rFfvw7Betfo06XoOjwZh0nQ@mail.gmail.com>
References: <e02d79e8-7d80-4614-bd25-e73fb43dad9d@isocpp.org>
 <10b21241-b683-44d5-82ce-90681b2643a4@isocpp.org> <CAFk2RUbf5skMEcsLd_hUiZrib2bGCvyrJbgsx9LV-rXaj=fBZw@mail.gmail.com>
 <CAFk2RUbgg7UMc_mFGKQZF7-PVVbEDsdoZoXL46oyxr+PLRTfvw@mail.gmail.com>
 <08ff73f1-6989-393e-ee4e-8158af2e7bed@honermann.net> <CAFk2RUaBhq7KVukgRMvqBMuBiBwZmCf+xZpD9jRtBberFoU2Rg@mail.gmail.com>
 <c70b0cd6-fa3e-d215-3fef-06eb231ed3cd@honermann.net> <CAFk2RUbiUZ4n_mXdBUTGEZSsh5C=Mf0hKbKu76PKzCCWnZfrgA@mail.gmail.com>
 <d184a83a-4f99-a8d2-6bba-1b8aeedd797c@honermann.net> <20170516164245.GA16348@fukushima.lysator.liu.se>
 <ffcb4ca3-5fb8-41b4-8b38-cfd287148cd5@honermann.net> <CAFk2RUY1AYOen-Rb8n6yzc1jsOiydbUCUDqLdKMPyiyiHnnO4w@mail.gmail.com>
 <c0bf3a06-53e5-3411-0967-b167da5d0dcd@honermann.net> <CAFk2RUYaNuKM=xhLTP_ZE97KvRUAJybUhaoFAmT+V_-7P3t1Mg@mail.gmail.com>
 <dedf6bf1-599c-400e-a392-ee7bc8be0afb@isocpp.org> <586c2633-4586-12d8-35ae-75ebab176ff8@honermann.net>
 <CADvuK0JFhG1anzEmHLg5+mhiLcHGU+31PRY=gWPhSuG0Ejd5zw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1494976632 11717 195.159.176.226 (16 May 2017 23:17:12 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 16 May 2017 23:17:12 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRB54Q53EAKGQEMAXKPAA@isocpp.org Wed May 17 01:17:08 2017
Return-path: <std-proposals+bncBC5JHI7A7ALRB54Q53EAKGQEMAXKPAA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f71.google.com ([209.85.214.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRB54Q53EAKGQEMAXKPAA@isocpp.org>)
	id 1dAliF-0002vA-Aq
	for gclcip-std-proposals@m.gmane.org; Wed, 17 May 2017 01:17:07 +0200
Original-Received: by mail-it0-f71.google.com with SMTP id s131sf116070354itd.6
        for <gclcip-std-proposals@m.gmane.org>; Tue, 16 May 2017 16:17:13 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1494976632; cv=pass;
        d=google.com; s=arc-20160816;
        b=Na/YTNl3qdpSXb0MzLpW9L8D/KpXaUC+sqmzifFdL29+gsUeHKHd7oopRJKA7cg7Xy
         EpVSt5s6dBfEtnqRd4CkU1GF0az1PVkSWsjI4geTT9xPida6FtXxPlsZG0XMqe59E/7d
         gPi0RXMu6Rgih9GLy83NRSJ9kfzmJ4NyR6kXUOy3b2OrD5kFn3Vz0bxyckrrws29T1ws
         WAbfhjmnFNGGQNrS7jJVzS9BAnbyZZGPvaNZpMCZ6Ubmyb58wasAZi/iXtPYu4WQC6ve
         cw7Oj91Calpm7ujyDtXYo5ysD2H0aWEuTYtSgnsDy3hRHu0U2CvnmxGA4erJOHUt0TEl
         z38Q==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=d4UOvJrGK09U+RYO4tRGsPzfbBbUqY3PNJRLT5euWz8=;
        b=CRe/Jf9/otaqVXUcPjB5htAxWZu+A2Pfgp0WIRDts9CVvaMP8xncWi0pbeCZnnXlpE
         jrC/gJP5ms2kvpSt1RbWi2dmjIufAMR+45Ol7FuJybK4x2eFPaAPsVYOJQnxQRTfmgEB
         8x5nFbxSS+jY5a4VJnziEOqBO9eLEusysyZdi1xHM1eDb3sYpXlYII2vS+Jh2U7yJPhD
         BNEYWulRQOuhZSl5WRrHynfNm2cbtWxgxRdh4TtKy7nLcS5p3ChhOMmqq/cHflslD+xC
         PMUDTW+o+FxNu7hDPeG9wwssRy631NbIKGO6oc9CKfmQaMl4Ur4gA08dw6PgjKX5bxbK
         a/vw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::236 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=d4UOvJrGK09U+RYO4tRGsPzfbBbUqY3PNJRLT5euWz8=;
        b=L4vWoC1qpG2zbtWFUuLp0/g9MNG1jetJ5vIn/tv30wzS3EwgIH7RvRsYDJsdn/USeh
         iUfCOLFQ0HH2a07+hnjNuuSxy04E/kzBBVZ8FV/uHjmhRfph84m0UvxUa1XJs3naQ/lC
         JFbpqNRGuiYax4dLY/lRqZBHZ7KOQXeB+zcPucaB60Q1DxM1Kw52XxUvb3nH+qeBcyIy
         0mStqjdyO+hQfcrw1z61sStmZA8BNu4nPho8/KuRlKh+nDcDWuCj4+Kr8ZQ37ZPV4CL7
         7Y8RB7ppKe3ZbuzDPrYTZI2mgMC+h0SpBdWH5XxOxhPxvZEE4tKqzZqjlM6hVJJ0Q0hN
         7LSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=d4UOvJrGK09U+RYO4tRGsPzfbBbUqY3PNJRLT5euWz8=;
        b=lq91AhPZR2sS+6jHTc49A9WQmwI/Ktb9wqCl9CFwVqz+Ls98vxvE5rgCPSEphTyHCJ
         XbRImLo6tfsanDNQA8rYxm7S/EWfsTdCvWobQsgFumoRYY4it89zyMkikgcay1cbwCuZ
         j8Z7WQP/R2S4+zUiwyt22uKatufHUg9zfnRlNYlU7RJHGgCkLAuSLQXeKZkqrIg5xz64
         QLke3Z4WEIc+iiixLov/L2eA4cj6M8/bGvVuTOgighWI8ZqWB9ES1kp6pkcZ+Xaehsfi
         WZr0fU9Uyu2pQ4VBW9jApiVDmuS/hqCjNkkZimfgSzlB+R/T1mC6whncOiwYPyvqV4ev
         xhbA==
X-Gm-Message-State: AODbwcBM7bCqhyxOPQiwDaif/pAQlsJESbtbGcQCK8NJmewMjuX4Zdbb
	wWAMeFFG4kBxGPha
X-Received: by 10.107.165.132 with SMTP id o126mr243527ioe.0.1494976632434;
        Tue, 16 May 2017 16:17:12 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.37.235 with SMTP id q98ls2567640ota.49.gmail; Tue, 16 May
 2017 16:17:11 -0700 (PDT)
X-Received: by 10.157.46.112 with SMTP id c45mr292195otd.73.1494976631691;
        Tue, 16 May 2017 16:17:11 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1494976631; cv=none;
        d=google.com; s=arc-20160816;
        b=Kx4k0D+1bpRSxe+FQgxN1Ss+vH6VMxwaTfeX/d3ZdAJo0ajvqPxJqxMTwc70ZYOlOx
         9+6bRYBS6zLtBMdxCQkEVYArsnd7X2p8BGu4ixavgcDjItU7/Os9CG8G41SrW56Ai/pR
         D5SkCeQYR6ye7ygCuxbaW7ba1480zeOjJaxyfwp+corMGIDKWjojn+eUyZuhhSFuIdSt
         XYYiRoQs+Q7ko6OmY46ExuVBuOP4XLQ0JogjN8aangl/ALXOTfElRHNhHIShPTSlOjRB
         ausDf2waOMzIDJvaeo3wS/5CdQORTfiBjj9yIoXKL8EnEN6LzNBJhiSJwYbM0yzygvaP
         wDEA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=niEX33l6hmEREY21MGO5FkkOqu3oPJaIRANZxVYxBKU=;
        b=r0wbt8H6sAcPiVSVh3/o2x+0Wslfeph6WypJ/jOv6If4Q20CXMqt4qL8NzZAzZbqJs
         esaqs2pbpb7ktWof9iVNsHBxEJ1SVBxetqh+6qqOYBBPw1F+yKPmJBrWR7Wt3OIDopPt
         XmCJv7wgdVKfVzeNcGUxRwT22bAysIK4zSlhaUioZb7jhqZ/psGS2nmyUG+k6ekIYGVK
         1eLpsuJqJoDFopHqwLUjPFVc6TBdIgzE+MpFUj4DKPnRYyeUOioHyVJcwvOQT9gkZF0K
         cIkfp+rFnHB+Ylp5qG/cmBYS2kd/cdnHGoKo7kSR0GFZzidnE2NKVX/hNL8Z+gf5Mz3+
         gg3g==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::236 as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com. [2607:f8b0:4003:c06::236])
        by mx.google.com with ESMTPS id o81si101418ota.292.2017.05.16.16.17.11
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 16 May 2017 16:17:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::236 as permitted sender) client-ip=2607:f8b0:4003:c06::236;
Original-Received: by mail-oi0-x236.google.com with SMTP id h4so44603226oib.3
        for <std-proposals@isocpp.org>; Tue, 16 May 2017 16:17:11 -0700 (PDT)
X-Received: by 10.157.38.143 with SMTP id l15mr285359otb.160.1494976631298;
 Tue, 16 May 2017 16:17:11 -0700 (PDT)
Original-Received: by 10.157.17.253 with HTTP; Tue, 16 May 2017 16:17:10 -0700 (PDT)
In-Reply-To: <CADvuK0JFhG1anzEmHLg5+mhiLcHGU+31PRY=gWPhSuG0Ejd5zw@mail.gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 ville.voutilainen@gmail.com designates 2607:f8b0:4003:c06::236 as permitted
 sender) smtp.mailfrom=ville.voutilainen@gmail.com;       dmarc=pass (p=NONE
 sp=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:32507
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/32507>

On 17 May 2017 at 01:41, Arthur O'Dwyer <arthur.j.odwyer@gmail.com> wrote:
> Speaking of "being able to declare a variable instead of a binding", this
> morning I ran across this example due to Tony van Eerd:
>
> struct Foo {
>     int x = 0;
>     std::string str = "world";
>     ~Foo() { std::cout << str; }
> };
>
> int main() {
>     auto [i, s] = Foo();
>     std::cout << "hello ";
>     s = "structured bindings";
>     // Foo's destructor prints "hello structured bindings"!
> }
>
> ...which is the nail in the coffin of "ever using C++17 structured bindings
> in production code" AFAIC.


...because you insist on thinking that the bindings do something that
they do not?

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFk2RUas7u5rzMdxdAZZ_qFxhN9rFfvw7Betfo06XoOjwZh0nQ%40mail.gmail.com.

.
