220 6847 <CAOU91ON4GfJWAZmcaUBU02WHjbDhU3sg8sEyUF_nTmWwDtC87g@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: =?UTF-8?Q?Klaim_=2D_Jo=C3=ABl_Lamotte?= <mjklaim@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: auto with copy in expression
Date: Tue, 1 Oct 2013 18:04:23 +0200
Lines: 37
Approved: news@gmane.org
Message-ID: <CAOU91ON4GfJWAZmcaUBU02WHjbDhU3sg8sEyUF_nTmWwDtC87g@mail.gmail.com>
References: <65473e60-c6ee-48e4-ae03-fcbe251d7b9d@isocpp.org>
	<CAFk2RUY8U8YmChiNH5HzCnBkQycLvyrR0nHgTzMhX-Y9SzQs+A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b33d1762f227b04e7b01b3d
X-Trace: ger.gmane.org 1380643463 19384 80.91.229.3 (1 Oct 2013 16:04:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 1 Oct 2013 16:04:23 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD3NR2WQQ4IBBB7FVOJAKGQELWH777Q@isocpp.org Tue Oct 01 18:04:25 2013
Return-path: <std-proposals+bncBD3NR2WQQ4IBBB7FVOJAKGQELWH777Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f70.google.com ([209.85.219.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD3NR2WQQ4IBBB7FVOJAKGQELWH777Q@isocpp.org>)
	id 1VR2Qz-00027r-4w
	for gclcip-std-proposals@m.gmane.org; Tue, 01 Oct 2013 18:04:25 +0200
Original-Received: by mail-oa0-f70.google.com with SMTP id g12sf23104212oah.5
        for <gclcip-std-proposals@m.gmane.org>; Tue, 01 Oct 2013 09:04:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=u5GbMBySZXwoiaMEOdlk3kmmkQH++J/rTjBrTuHMQKU=;
        b=j0/TnhWIwN2s0i3g7AC7Sjf87qQBnNCXYmta0GR3OT9WObHaOjObFikTFzQLI3TPR5
         Bq3aCayKHNjOE9/QdGvJJsn82xYoJ3pXLSjVIdK49iSfl3deTPcoKjW0tSBWGzDxP7SZ
         gRH3SDBZebmLWH8XA8MRLtZjWJHxx2HeaxIpOAJC/XuU3vYmMfuBob9kKgK468/HeTEr
         eo8NNyopFo08MJMgRc6Gh8P8D7ptYowj9CLnfCGPM/fXjFruvjvVx0KIoUmr3o1VmxXv
         81tPlD9Q321NAvgkKJbQ+Z8axZv1MWx/ftHmVMBvP4BK0I0qufZwO5KMpzAZHpEmO/YQ
         oqsA==
X-Received: by 10.43.151.16 with SMTP id kq16mr16750109icc.22.1380643464095;
        Tue, 01 Oct 2013 09:04:24 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.103.1 with SMTP id fs1ls2631486igb.23.canary; Tue, 01 Oct
 2013 09:04:23 -0700 (PDT)
X-Received: by 10.60.58.10 with SMTP id m10mr435741oeq.61.1380643463324;
        Tue, 01 Oct 2013 09:04:23 -0700 (PDT)
Original-Received: from mail-oa0-x22f.google.com (mail-oa0-x22f.google.com [2607:f8b0:4003:c02::22f])
        by mx.google.com with ESMTPS id g1si5056676oej.28.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 01 Oct 2013 09:04:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of mjklaim@gmail.com designates 2607:f8b0:4003:c02::22f as permitted sender) client-ip=2607:f8b0:4003:c02::22f;
Original-Received: by mail-oa0-f47.google.com with SMTP id i1so5047267oag.34
        for <std-proposals@isocpp.org>; Tue, 01 Oct 2013 09:04:23 -0700 (PDT)
X-Received: by 10.60.93.67 with SMTP id cs3mr26884587oeb.12.1380643463155;
 Tue, 01 Oct 2013 09:04:23 -0700 (PDT)
Original-Received: by 10.76.128.177 with HTTP; Tue, 1 Oct 2013 09:04:23 -0700 (PDT)
In-Reply-To: <CAFk2RUY8U8YmChiNH5HzCnBkQycLvyrR0nHgTzMhX-Y9SzQs+A@mail.gmail.com>
X-Original-Sender: mjklaim@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of mjklaim@gmail.com designates 2607:f8b0:4003:c02::22f as permitted
 sender) smtp.mail=mjklaim@gmail.com;       dkim=pass header.i=@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:6847
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6847>

--047d7b33d1762f227b04e7b01b3d
Content-Type: text/plain; charset=ISO-8859-1

If my memory is correct, the proposal for decltype(auto) should fix the
issue?
That is:

decltype(auto) result = foo(); // result is always a copy

I'm not totally sure though.

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--047d7b33d1762f227b04e7b01b3d
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr">If my memory is correct, the proposal for decltype(auto) should fix the issue?<div>That is:</div><div><br></div><div>decltype(auto) result = foo(); // result is always a copy</div><div><br></div><div class="gmail_extra">
I&#39;m not totally sure though.</div></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/</a>.<br />

--047d7b33d1762f227b04e7b01b3d--

.
