220 21334 <ff062d43-3aa3-4d6d-8c64-a2582e7d0ca8@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Conversion from lvalue to rvalue
Date: Mon, 5 Oct 2015 18:24:58 -0700 (PDT)
Lines: 90
Approved: news@gmane.org
Message-ID: <ff062d43-3aa3-4d6d-8c64-a2582e7d0ca8@isocpp.org>
References: <f8a1e157-ae9a-40f8-9bc1-5aff59eefc10@isocpp.org>
 <31dedac5-7d51-402c-946e-0555c925f70d@isocpp.org>
 <d165db3c-7593-4663-b93e-c37eb8628635@isocpp.org>
 <116a66a2-90ea-4269-ac85-3432ff7094b0@isocpp.org>
 <42447957-4276-4f59-89b6-ab4be37c47c6@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_4252_1170265457.1444094698717"
X-Trace: ger.gmane.org 1444094704 30150 80.91.229.3 (6 Oct 2015 01:25:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 6 Oct 2015 01:25:04 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBB3OFZSYAKGQEX2PLSBA@isocpp.org Tue Oct 06 03:25:03 2015
Return-path: <std-proposals+bncBCEKFTV6ZUMBB3OFZSYAKGQEX2PLSBA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f197.google.com ([209.85.223.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBB3OFZSYAKGQEX2PLSBA@isocpp.org>)
	id 1ZjH03-0006Bp-6c
	for gclcip-std-proposals@m.gmane.org; Tue, 06 Oct 2015 03:25:03 +0200
Original-Received: by ioii196 with SMTP id i196sf323248474ioi.3
        for <gclcip-std-proposals@m.gmane.org>; Mon, 05 Oct 2015 18:25:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=p/JMcmFCDdAyS57qYaF3g5U2MMwhCwU+EF31HsR5/Rs=;
        b=Yf3kLcgJp5hDD/RojfzUpQqxVOwe4IhtObpdqk06dFZa3fPRHq53adstWhMu6m8irw
         zyLPVnMlWPGEPIMgOTGI47RaCmCjpzgZvL6tnSFeneIw+daWKVyUM1eFbJfrZGzDR9WM
         tOX1nvwPr0FyutPrJ9aj1wAUNW8kWvDZcWuOS4MERAl3WW/pRgPSnk9NMmaEHp/vKUoF
         2ZJk3W2LpO/4Bjliw3O97z9IvnSLd61Xk4OAPva4ZWbUC0kxihnJXMRFbTtAu543GCdg
         A/a+ACgvhZW6fI+6KwQ5c8sCTve2ohRtKNKwyvQ+PuMFLZx33i0gz9haqj7aPC8Sw0A3
         a3ow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:content-type:x-original-sender:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=p/JMcmFCDdAyS57qYaF3g5U2MMwhCwU+EF31HsR5/Rs=;
        b=eF40VuLg4/ISvFDSSXQXjTuj9QRyvhj5jxegNHgW1Cde+YpflsObccQiG+bDmI2BTy
         t3BkW32S0WUS5nUcpl+Ajp1Gvd1jLgzGgVo1GcpwYMldvJKDrtCPL/wOpNEIhjonhfg/
         54t9Y/qV/oQez20dxW+KY11wP2V2KcvhTaf4xvHcohKMkjHJI3x0rl85Of0EDgWeuhI0
         rLfZOHRunBQBI2/yiVoTBssCuOiIPIQnN5YhyQFQNmSeufvrIAu+v0yQYO/s7jnmwTs4
         6fqYiHwEPkVPW7H7bTvdAfue2Rsbc2y8lnxPt04zaky+grD3hQykwxgzfKONv9nZl/Zx
         gRFQ==
X-Gm-Message-State: ALoCoQksbH7BgdY3m0vVVcpe+grt1FBZkD7KtEh/YPmSDSlsrusuOOZfkU3g4jI5M6PiJEgefqcu
X-Received: by 10.50.225.102 with SMTP id rj6mr14972637igc.9.1444094702326;
        Mon, 05 Oct 2015 18:25:02 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.171.161 with SMTP id av1ls1426987igc.18.canary; Mon, 05 Oct
 2015 18:25:00 -0700 (PDT)
X-Received: by 10.50.111.138 with SMTP id ii10mr40302igb.0.1444094700873;
        Mon, 05 Oct 2015 18:25:00 -0700 (PDT)
In-Reply-To: <42447957-4276-4f59-89b6-ab4be37c47c6@isocpp.org>
X-Original-Sender: jmckesson@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:21334
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21334>

------=_Part_4252_1170265457.1444094698717
Content-Type: multipart/alternative; 
	boundary="----=_Part_4253_826242280.1444094698717"

------=_Part_4253_826242280.1444094698717
Content-Type: text/plain; charset=UTF-8

On Monday, October 5, 2015 at 8:12:59 PM UTC-4, T. C. wrote:
>
> http://cplusplus.github.io/EWG/ewg-active.html#188
>
> Although LWG might get to it first with decay_copy.
>

So long as the suggested `decay_copy` function works, I see no reason to 
make it a language feature. Presumably, it would be implemented like this:

template<typename T> auto decay_copy(const T &t) {return t;}




-- 

--- 
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/.

------=_Part_4253_826242280.1444094698717
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Monday, October 5, 2015 at 8:12:59 PM UTC-4, T. C. wrot=
e:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;b=
order-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><a href=3D"=
http://cplusplus.github.io/EWG/ewg-active.html#188" target=3D"_blank" rel=
=3D"nofollow" onmousedown=3D"this.href=3D&#39;http://www.google.com/url?q\7=
5http%3A%2F%2Fcplusplus.github.io%2FEWG%2Fewg-active.html%23188\46sa\75D\46=
sntz\0751\46usg\75AFQjCNF7D0ydgRFRd6s3ixjJ19MpxvdUSA&#39;;return true;" onc=
lick=3D"this.href=3D&#39;http://www.google.com/url?q\75http%3A%2F%2Fcpluspl=
us.github.io%2FEWG%2Fewg-active.html%23188\46sa\75D\46sntz\0751\46usg\75AFQ=
jCNF7D0ydgRFRd6s3ixjJ19MpxvdUSA&#39;;return true;">http://cplusplus.github.=
io/<wbr>EWG/ewg-active.html#188</a><div><br></div><div>Although LWG might g=
et to it first with decay_copy.</div></div></blockquote><div><br>So long as=
 the suggested `decay_copy` function works, I see no reason to make it a la=
nguage feature. Presumably, it would be implemented like this:<br><br><div =
class=3D"prettyprint" style=3D"background-color: rgb(250, 250, 250); border=
-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; word-wr=
ap: break-word;"><code class=3D"prettyprint"><div class=3D"subprettyprint">=
<span style=3D"color: #008;" class=3D"styled-by-prettify">template</span><s=
pan style=3D"color: #660;" class=3D"styled-by-prettify">&lt;</span><span st=
yle=3D"color: #008;" class=3D"styled-by-prettify">typename</span><span styl=
e=3D"color: #000;" class=3D"styled-by-prettify"> T</span><span style=3D"col=
or: #660;" class=3D"styled-by-prettify">&gt;</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"> </span><span style=3D"color: #008;" clas=
s=3D"styled-by-prettify">auto</span><span style=3D"color: #000;" class=3D"s=
tyled-by-prettify"> decay_copy</span><span style=3D"color: #660;" class=3D"=
styled-by-prettify">(</span><span style=3D"color: #008;" class=3D"styled-by=
-prettify">const</span><span style=3D"color: #000;" class=3D"styled-by-pret=
tify"> T </span><span style=3D"color: #660;" class=3D"styled-by-prettify">&=
amp;</span><span style=3D"color: #000;" class=3D"styled-by-prettify">t</spa=
n><span style=3D"color: #660;" class=3D"styled-by-prettify">)</span><span s=
tyle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"c=
olor: #660;" class=3D"styled-by-prettify">{</span><span style=3D"color: #00=
8;" class=3D"styled-by-prettify">return</span><span style=3D"color: #000;" =
class=3D"styled-by-prettify"> t</span><span style=3D"color: #660;" class=3D=
"styled-by-prettify">;}</span></div></code></div><br><br><br><br></div></di=
v>

<p></p>

-- <br />
<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 e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_4253_826242280.1444094698717--
------=_Part_4252_1170265457.1444094698717--

.
