220 21350 <00B1216C-BB35-4C7C-9BAF-9C59A996156A@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Conversion from lvalue to rvalue
Date: Tue, 6 Oct 2015 21:35:23 +0800
Lines: 83
Approved: news@gmane.org
Message-ID: <00B1216C-BB35-4C7C-9BAF-9C59A996156A@gmail.com>
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> <ff062d43-3aa3-4d6d-8c64-a2582e7d0ca8@isocpp.org> <BLU437-SMTP37170683138BE594B7E3E1A7370@phx.gbl> <2C19913E-B6BC-423D-8570-939C3A573CDF@gmail.com> <BLU436-SMTP228EEA3C501F8822B9D7DD8A7370@phx.gbl> <67427BA5-818F-4C32-92DA-E8C07429CC26@gmail.com> <BLU437-SMTP38051A87DE106ECC4FB592A7370@phx.gbl>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_5C25EF5D-C51C-4E22-823C-8984A5861BEE"
X-Trace: ger.gmane.org 1444138531 5805 80.91.229.3 (6 Oct 2015 13:35:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 6 Oct 2015 13:35:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBH44Z6YAKGQEYKMPBIA@isocpp.org Tue Oct 06 15:35:31 2015
Return-path: <std-proposals+bncBCW25A7E3QCRBH44Z6YAKGQEYKMPBIA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pd0-f197.google.com ([209.85.192.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBH44Z6YAKGQEYKMPBIA@isocpp.org>)
	id 1ZjSOw-0006dq-2Q
	for gclcip-std-proposals@m.gmane.org; Tue, 06 Oct 2015 15:35:30 +0200
Original-Received: by pdnr2 with SMTP id r2sf379050109pdn.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 06 Oct 2015 06:35:28 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:content-type:message-id:mime-version
         :subject:date:references:to:in-reply-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=L5LQkAUOmx3jmKKxoc8bfHA/VTQYjDQat6SIfVlgf6s=;
        b=kCk5TsGePSw8UaVqaz0xswOSs8Gnf9WkoTxQBGvDD6R2jFT6nl93ueI7my5cmzga3g
         E8g6Dsnxj6oKSDLcgMNHbQ/RuJAfyLWHPiHTn+ozr2WiUEDE30yCUjaLlbyCC7MG9jxe
         OWP4xYIuN9ko1Zx09P78qn9/w1SuhUDXwQsb6oqrjf48Qc5MgQZ6JNWHdmBDklaQ9ECT
         lfqNAuMeJAaMhmu7LsKe9ojPDDoplHboDVu60vac60D0osyMbjIqncQLGeqESfwmyIxj
         o7QPN4awbzXwEQDyH5sgvX4h21nJEBKXP158NR2m5KUphruQTA1dVCK8LFbhJVle8It2
         sMTA==
X-Gm-Message-State: ALoCoQnofrPi3oektiKdPzt8GSO5VzWTSpCLfjLSYpaxxFZ2L0sVyZn9w2d/+kA4Pq3q1dXh7qU/
X-Received: by 10.68.138.132 with SMTP id qq4mr30888154pbb.11.1444138528215;
        Tue, 06 Oct 2015 06:35:28 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.30.65 with SMTP id e62ls2195196ioe.49.gmail; Tue, 06 Oct
 2015 06:35:27 -0700 (PDT)
X-Received: by 10.66.122.98 with SMTP id lr2mr46900855pab.146.1444138527356;
        Tue, 06 Oct 2015 06:35:27 -0700 (PDT)
Original-Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com. [2607:f8b0:400e:c03::22b])
        by mx.google.com with ESMTPS id jo6si48992244pbc.90.2015.10.06.06.35.27
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 06 Oct 2015 06:35:27 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c03::22b as permitted sender) client-ip=2607:f8b0:400e:c03::22b;
Original-Received: by pacex6 with SMTP id ex6so211200361pac.0
        for <std-proposals@isocpp.org>; Tue, 06 Oct 2015 06:35:27 -0700 (PDT)
X-Received: by 10.66.136.39 with SMTP id px7mr46697701pab.23.1444138527052;
        Tue, 06 Oct 2015 06:35:27 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.184])
        by smtp.gmail.com with ESMTPSA id tj2sm33804763pab.4.2015.10.06.06.35.25
        for <std-proposals@isocpp.org>
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 06 Oct 2015 06:35:26 -0700 (PDT)
In-Reply-To: <BLU437-SMTP38051A87DE106ECC4FB592A7370@phx.gbl>
X-Mailer: Apple Mail (2.2104)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:400e:c03::22b as permitted
 sender) smtp.mailfrom=potswa@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-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:21350
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21350>

--Apple-Mail=_5C25EF5D-C51C-4E22-823C-8984A5861BEE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8


> On 2015=E2=80=9310=E2=80=9306, at 9:18 PM, Agust=C3=ADn K-ballo Berg=C3=
=A9 <kaballo86@hotmail.com> wrote:
>=20
> What I meant was your email is surprising, it does not seem to be answeri=
ng to anything I have said. I wonder if I am just missing it.

You mentioned that decay_copy creates unnecessary copies (3/3 value categor=
ies). My point is that auto{} creates slightly fewer (2/3), and my proposal=
 enables a solution which is ideal (1/3, only lvalues are copied).

Also I mentioned a problem between my proposal and the tie() example, but t=
hat=E2=80=99s fine, no problem =E2=80=94 no reference to a temporary is ret=
ained. I=E2=80=99ve got a little flu today and the synapses aren=E2=80=99t =
firing so well.

--=20

---=20
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 e=
mail 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-proposa=
ls/.

--Apple-Mail=_5C25EF5D-C51C-4E22-823C-8984A5861BEE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D""><br class=3D""><di=
v><blockquote type=3D"cite" class=3D""><div class=3D"">On 2015=E2=80=9310=
=E2=80=9306, at 9:18 PM, Agust=C3=ADn K-ballo Berg=C3=A9 &lt;<a href=3D"mai=
lto:kaballo86@hotmail.com" class=3D"">kaballo86@hotmail.com</a>&gt; wrote:<=
/div><br class=3D"Apple-interchange-newline"><div class=3D""><span style=3D=
"font-family: Helvetica; font-size: 12px; font-style: normal; font-variant:=
 normal; font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: none; w=
hite-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-wi=
dth: 0px; float: none; display: inline !important;" class=3D"">What I meant=
 was your email is surprising, it does not seem to be answering to anything=
 I have said. I wonder if I am just missing it.</span><br style=3D"font-fam=
ily: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: =
auto; text-align: start; text-indent: 0px; text-transform: none; white-spac=
e: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;=
" class=3D""></div></blockquote></div><br class=3D""><div class=3D"">You me=
ntioned that <font face=3D"Courier" class=3D"">decay_copy</font> creates un=
necessary copies (3/3 value categories). My point is that <font face=3D"Cou=
rier" class=3D"">auto{}</font> creates slightly fewer (2/3), and my proposa=
l enables a solution which is ideal (1/3, only lvalues are copied).</div><d=
iv class=3D""><br class=3D""></div><div class=3D"">Also I mentioned a probl=
em between my proposal and the&nbsp;<font face=3D"Courier" class=3D"">tie()=
</font> example, but that=E2=80=99s fine, no problem =E2=80=94 no reference=
 to a temporary is retained. I=E2=80=99ve got a little flu today and the sy=
napses aren=E2=80=99t firing so well.</div><div class=3D""><br class=3D""><=
/div></body></html>

<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 />

--Apple-Mail=_5C25EF5D-C51C-4E22-823C-8984A5861BEE--

.
