220 28529 <CAFk2RUZwZLgNW6-XjHaZO+-aPa7AsA8EsHO9Vbf=x+FHe-GL-Q@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: A plea to reconsider adding Structured Bindings
 to language
Date: Wed, 5 Oct 2016 17:07:27 +0300
Lines: 31
Approved: news@gmane.org
Message-ID: <CAFk2RUZwZLgNW6-XjHaZO+-aPa7AsA8EsHO9Vbf=x+FHe-GL-Q@mail.gmail.com>
References: <201610051238.17863.marc.mutz@kdab.com> <201610051300.02280.marc.mutz@kdab.com>
 <CAKgx6B+kywTPwYVRt3P5KDQ_=xMUuHzSJv6x21L5j1ExPz6bkQ@mail.gmail.com>
 <201610051411.30312.marc.mutz@kdab.com> <073a7698-1388-4858-b6fa-b2b62a4fb6f1@isocpp.org>
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 1475676462 10686 195.159.176.226 (5 Oct 2016 14:07:42 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 5 Oct 2016 14:07:42 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBIES2S7QKGQETK5ZOHA@isocpp.org Wed Oct 05 16:07:36 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBIES2S7QKGQETK5ZOHA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f71.google.com ([209.85.213.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBIES2S7QKGQETK5ZOHA@isocpp.org>)
	id 1brmr1-0000qj-6V
	for gclcip-std-proposals@m.gmane.org; Wed, 05 Oct 2016 16:07:27 +0200
Original-Received: by mail-vk0-f71.google.com with SMTP id 83sf129233691vkd.3
        for <gclcip-std-proposals@m.gmane.org>; Wed, 05 Oct 2016 07:07:29 -0700 (PDT)
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=ZCx1ENbT7h6bNAxCu3XMI/ev0ypNptPR6F7e0ibNZsA=;
        b=QbUQ1ufvriiRGjH3KJ+TOI4k+l5sZ213GfJp0CIBUiaPerqs37VbmRscy4qO/5swRQ
         zqUm6fyHxU0Z0pZC+6xPIb3WAu14C46l2SRg1/hYAHK+uTDv0hpZsRt9vjAlco1wYJw3
         oNZVjvB1EP9RHKZLzdcrKQgsamHaYDWu0nCjYRcI6goVZsSwQN/f81ShMr1Z1aHImJ1Z
         j+ypen3SBZoyPX5bTTZGeMV3MkJtt2ezHgRKlaI/IM79jPHHvaUvVpjFTkxr2O4B5oIA
         wRpTGkTEkz81oH9KAEe7pRdpoEIEthEYupUOdtfeDIW8PmOVemprOd3T7r/XKVBshz8a
         LcOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        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=ZCx1ENbT7h6bNAxCu3XMI/ev0ypNptPR6F7e0ibNZsA=;
        b=lW49qJGhzBGt29uUPtg7FzVrIdEhbvS0xiJ+5zQBCqdDEooc1HrQ9bV4igCMRNpE0k
         Ql0gB2IPAFr7mtBDjQMkVm9U0xfqz/Ig39kheihBjDoKRNu0Xr6w0PD8+CWP+t0bazmI
         Rf10GDZ6N17IAztD2UEs+mUfVQ/Ijb6e9iH1EPxW2Y3SKp7k1YTqQKung2wtA9PuiUfo
         v+mQ3sqMiLr4gL4Osw2js/4hVR7e3LdxtzGs7XP0OCEkjiM9iidJ1HYQanVeuEiPc7/y
         B8Zk/BIfxKwsgmyWwbEWSE8Ekp+D6F1ZseTaaRDcEvv5AyddP5+YUe4pCttAfNcZIH73
         v5NA==
X-Gm-Message-State: AA6/9RneFPFzt5JyRRzaCxJfzkOKRxI2zslG+QNSc5pxmCXIkCqLeI2Tw/SO2tvlSD+IbQ==
X-Received: by 10.13.241.3 with SMTP id a3mr1951277ywf.161.1475676448927;
        Wed, 05 Oct 2016 07:07:28 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.15.105 with SMTP id 96ls783132ott.41.gmail; Wed, 05 Oct
 2016 07:07:28 -0700 (PDT)
X-Received: by 10.129.99.2 with SMTP id x2mr6877319ywb.106.1475676448065;
        Wed, 05 Oct 2016 07:07:28 -0700 (PDT)
Original-Received: from mail-vk0-x241.google.com (mail-vk0-x241.google.com. [2607:f8b0:400c:c05::241])
        by mx.google.com with ESMTPS id g125si5157007vke.131.2016.10.05.07.07.28
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 05 Oct 2016 07:07:28 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::241 as permitted sender) client-ip=2607:f8b0:400c:c05::241;
Original-Received: by mail-vk0-x241.google.com with SMTP id z126so8733900vkd.0
        for <std-proposals@isocpp.org>; Wed, 05 Oct 2016 07:07:28 -0700 (PDT)
X-Received: by 10.31.217.3 with SMTP id q3mr6574433vkg.150.1475676447645; Wed,
 05 Oct 2016 07:07:27 -0700 (PDT)
Original-Received: by 10.103.104.69 with HTTP; Wed, 5 Oct 2016 07:07:27 -0700 (PDT)
In-Reply-To: <073a7698-1388-4858-b6fa-b2b62a4fb6f1@isocpp.org>
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:400c:c05::241 as permitted
 sender) smtp.mailfrom=ville.voutilainen@gmail.com;       dmarc=pass (p=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:28529
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/28529>

On 5 October 2016 at 16:49, Greg Marr <gregmmarr@gmail.com> wrote:
> On Wednesday, October 5, 2016 at 8:09:43 AM UTC-4, Marc Mutz wrote:
>>
>> On Wednesday 05 October 2016 13:40:20 Domen Vrankar wrote:
>> > So you're saying that returning a structure with error status and result
>> > or
>> > multiple results of which you only need one or two (reason being for eg.
>> > cheaper to return all at once - due to for e.g. web service call or
>> > complex
>> > processing - than request one by one on need to basis) you would still
>> > prefer dragging the entire structure around giving the feeling that your
>> > code has more dependencies than it actually does?
>>
>> One of us is not underatanding SB correctly, or I don't understand you. SB
>> stores the whole struct, too, it just defines local aliases to the member
>> of
>> the struct (or tuple, or pair, or ...).
>
>
> Only if you say that you want references, using "auto &" or "auto &&".  If
> you use "auto", you just get copies.


You get a copy of the whole struct, not copies of individual bindings.

-- 
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/CAFk2RUZwZLgNW6-XjHaZO%2B-aPa7AsA8EsHO9Vbf%3Dx%2BFHe-GL-Q%40mail.gmail.com.

.
