220 11823 <4D3852AD-1AEB-44BA-941C-D645BAD19405@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: N4078: Rvalue reference overloads for value()
 method returns object by value
Date: Fri, 11 Jul 2014 06:59:07 +0800
Lines: 115
Approved: news@gmane.org
Message-ID: <4D3852AD-1AEB-44BA-941C-D645BAD19405@gmail.com>
References: <b538efba-faf4-4ffc-a553-302b9d2ba2c0@isocpp.org>
 <CANh-dX=M7niArNp-1sCcqxaREEJSxmjMftgw7uMHN9YnZC-h+w@mail.gmail.com>
 <4DA018C3-2327-4F55-B7F8-7988EC7B789A@gmail.com> <1a858a77-310b-4591-aaf5-960c40d9f5fc@isocpp.org>
 <66AF41C1-CB37-4311-98EA-D47DBC6068DC@gmail.com> <66c38b61-7a95-4ace-b34f-2346bb334fb9@isocpp.org>
 <F1CBA358-0AD8-4ADD-99DA-6D00FCFE150F@gmail.com> <CAFk2RUZENmaMW5NwBaiF6byfhgRyPUsSmuyVjnRDhbjcfaTtQA@mail.gmail.com>
 <CC03CC1C-8487-40C8-97DF-2CA7661DAD55@gmail.com> <CAFk2RUa7-WTcL=XFYO8KMyU4rdpjDEfFM6n6SkUZ=SW_U7s5XQ@mail.gmail.com>
 <EF930317-EB97-402E-A3A0-CC46E7E2D998@gmail.com> <CAFk2RUZigiwLwFpfVXuFS8cqy38hPG3OGhGUi+iNwSYuYvyAyQ@mail.gmail.com>
 <A46ADDB4-C9B0-4163-81BE-900CD879D8C8@gmail.com> <CAFk2RUZ-DqEcMeehjH8KedYgErxKMq4O9kmeN4FZzjkXMYSsiw@mail.gmail.com>
 <6F4B3C72-9962-48DC-8527-0C89EA1B9710@gmail.com> <CAFk2RUb5xynaoQx-j4cQuXC8t-0GGc9-CZyRA2V=j6cfuNQV=g@mail.gmail.com>
 <35873CE5-ED8C-4C03-A6A1-E4132DECD91F@gmail.com> <CAFk2RUYRJSNcXykj9oPd=3EehSozf7PcX8ACM_hrqhK+Ur2V8A@mail.gmail.com>
 <335948E6-8140-4673-B958-930356A52070@gmail.com> <CAFk2RUYf+tpBvxiK00O=FncB01BWe6+SXiYBN7fixd4mhm+Z-w@mail.gmail.com>
 <76ACA175-5A44-4BE8-B49F-BAC6DA65E6B1@gmail.com> <CAFk2RUah5k9zy_mQqeNN9mec0PYkmKDZp7LVXm64dTeSLaw6nQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_57B4A170-AC9F-4C9D-83D4-7A7BE2B7FBBF"
X-Trace: ger.gmane.org 1405033161 22028 80.91.229.3 (10 Jul 2014 22:59:21 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 10 Jul 2014 22:59:21 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBQFV7SOQKGQE5WEDPBY@isocpp.org Fri Jul 11 00:59:14 2014
Return-path: <std-proposals+bncBCW25A7E3QCRBQFV7SOQKGQE5WEDPBY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pd0-f199.google.com ([209.85.192.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBQFV7SOQKGQE5WEDPBY@isocpp.org>)
	id 1X5NJ3-0007GI-IB
	for gclcip-std-proposals@m.gmane.org; Fri, 11 Jul 2014 00:59:13 +0200
Original-Received: by mail-pd0-f199.google.com with SMTP id r10sf1728251pdi.6
        for <gclcip-std-proposals@m.gmane.org>; Thu, 10 Jul 2014 15:59:12 -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: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:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=VAxMButlYIoYmSGeHnd4t8N122EBg2pYVpZXYcllYaU=;
        b=Vrlf+KYsy50A921EuHTd1XzJeu5jGWO+THvlTyJoUteft9CKOl4TeMVzA89c/VEYIH
         ftnRTBmSeorTMHZvjFaKQ6D39gtFYaV1h90eetQImOl/WWW0xjJCfme92qH0nR6B03nU
         VEA1DqzX61sJRBIKpts43Cjt8mC4jgTtAqjmF2oRhq76fi2kJcSUB+lJPh3YDNmxaIRY
         oOgZS742lt/lELzYdozSUkcaQRvpIYWA9gDOunOSPDdSAjd+Qj1JnGr4eBYKYF+vdJy0
         KerqCuDDeeTHJzFsq3LF/Iljzo1htZt2H3Vx2SIgomeORWV5fpquZT8ovYrIAu6qXnw/
         PVvw==
X-Gm-Message-State: ALoCoQmi3TEKq1gZviZeqUbsVXHR5E3uH4BlE3XLdw5lJ5xb4WQHv4ZDZ39yNlZ9bLf8r9iZtwDz
X-Received: by 10.66.158.193 with SMTP id ww1mr24668510pab.12.1405033152488;
        Thu, 10 Jul 2014 15:59:12 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.254.161 with SMTP id aj1ls22028igd.36.canary; Thu, 10 Jul
 2014 15:59:11 -0700 (PDT)
X-Received: by 10.50.12.38 with SMTP id v6mr25341583igb.29.1405033151717;
        Thu, 10 Jul 2014 15:59:11 -0700 (PDT)
Original-Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [2607:f8b0:4001:c03::22a])
        by mx.google.com with ESMTPS id jf4si102115igb.6.2014.07.10.15.59.11
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 10 Jul 2014 15:59:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:4001:c03::22a as permitted sender) client-ip=2607:f8b0:4001:c03::22a;
Original-Received: by mail-ie0-f170.google.com with SMTP id lx4so248342iec.29
        for <std-proposals@isocpp.org>; Thu, 10 Jul 2014 15:59:11 -0700 (PDT)
X-Received: by 10.43.179.73 with SMTP id oz9mr659351icc.18.1405033151545;
        Thu, 10 Jul 2014 15:59:11 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.43])
        by mx.google.com with ESMTPSA id aw9sm193091igc.9.2014.07.10.15.59.09
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 10 Jul 2014 15:59:11 -0700 (PDT)
In-Reply-To: <CAFk2RUah5k9zy_mQqeNN9mec0PYkmKDZp7LVXm64dTeSLaw6nQ@mail.gmail.com>
X-Mailer: Apple Mail (2.1878.6)
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:4001:c03::22a as permitted
 sender) smtp.mail=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-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:11823
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11823>

--Apple-Mail=_57B4A170-AC9F-4C9D-83D4-7A7BE2B7FBBF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1


On 2014-07-11, at 6:19 AM, Ville Voutilainen <ville.voutilainen@gmail.com> =
wrote:

> On 11 July 2014 01:01, David Krauss <potswa@gmail.com> wrote:
>> What I meant is to return T const &, as in N3966, which precedes N4078. =
The changelog in N4078 is wrong... as I said, churn.
>=20
> T const &? So we could never move?

Sorry, first thing in the morning. Roll back to N3966, the preceding regist=
ered-paper revision. It has two value() overloads, just like container and =
smart pointer accessors.

> Yes, the authors can always just drop the whole proposal if they don't
> like the modifications
> the committee demands. Or they can try to cope with the modifications.

Did you try suggesting to save the modification for later, that more experi=
ence would be useful?

> The original design of the rvalue-ref-qualified overloads, sure.

That's not how software features work. A reasonable definition for "the ori=
ginal design" would be boost::optional, which is in popular use. (It's unfo=
rtunate that Boost is not helping to prototype TS1, I guess it's ironically=
 become too resistant to change.)

>> Yeah right. The rest of the library can just arbitrarily decide to be in=
compatible.
>=20
> Indeed it can.

Quoting the other guy in this debate:

> But having it in the optional<T> will create and existing practice will m=
ake it easier to get the proposal that r-value overloads for other STL cont=
ainer to get accepted. And maybe then we would have a full implementation o=
f this pattern in library. But without stepping stone like optional it woul=
d be nearly impossible.

In American football (and politics), this is called an "end run."

--=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=_57B4A170-AC9F-4C9D-83D4-7A7BE2B7FBBF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-=
mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 2014&=
ndash;07&ndash;11, at 6:19 AM, Ville Voutilainen &lt;<a href=3D"mailto:vill=
e.voutilainen@gmail.com">ville.voutilainen@gmail.com</a>&gt; wrote:</div><b=
r class=3D"Apple-interchange-newline"><blockquote type=3D"cite">On 11 July =
2014 01:01, David Krauss &lt;<a href=3D"mailto:potswa@gmail.com">potswa@gma=
il.com</a>&gt; wrote:<br><blockquote type=3D"cite">What I meant is to retur=
n T const &amp;, as in N3966, which precedes N4078. The changelog in N4078 =
is wrong... as I said, churn.<br></blockquote><br>T const &amp;? So we coul=
d never move?<br></blockquote><div><br></div><div>Sorry, first thing in the=
 morning. Roll back to N3966, the preceding registered-paper revision. It h=
as two value() overloads, just like container and smart pointer accessors.<=
/div><br><blockquote type=3D"cite">Yes, the authors can always just drop th=
e whole proposal if they don't<br>like the modifications<br>the committee d=
emands. Or they can try to cope with the modifications.<br></blockquote><di=
v><br></div><div>Did you try suggesting to save the modification for later,=
 that more experience would be useful?</div><br><blockquote type=3D"cite">T=
he original design of the rvalue-ref-qualified overloads, sure.</blockquote=
><div><br></div><div>That&rsquo;s not how software features work. A reasona=
ble definition for &ldquo;the original design&rdquo; would be <font face=3D=
"Courier">boost::optional</font>, which is in popular use. (It&rsquo;s unfo=
rtunate that Boost is not helping to prototype TS1, I guess it&rsquo;s iron=
ically become too resistant to change.)</div><br><blockquote type=3D"cite">=
<blockquote type=3D"cite">Yeah right. The rest of the library can just arbi=
trarily decide to be incompatible.<br></blockquote><br>Indeed it can.<br></=
blockquote><div><br></div><div>Quoting the other guy in this debate:</div><=
div><br></div><div><blockquote type=3D"cite">But having it in the optional&=
lt;T&gt; will create and existing practice will make it easier to get the p=
roposal that r-value&nbsp;overloads for other STL container to get accepted=
.. And maybe then we would have a full implementation of this&nbsp;pattern i=
n library. But without stepping stone like optional it would be nearly impo=
ssible.</blockquote><br></div><div>In American football (and politics), thi=
s is called an &ldquo;end run.&rdquo;</div></div><br></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=_57B4A170-AC9F-4C9D-83D4-7A7BE2B7FBBF--

.
