220 11761 <CAGg_6+NpiwqAebLJBCh1yg=wk+BP1jrbBWDmVRvOLaBdoaPHMg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: N4078: Rvalue reference overloads for value()
 method returns object by value
Date: Wed, 9 Jul 2014 15:47:53 -0500
Lines: 69
Approved: news@gmane.org
Message-ID: <CAGg_6+NpiwqAebLJBCh1yg=wk+BP1jrbBWDmVRvOLaBdoaPHMg@mail.gmail.com>
References: <b538efba-faf4-4ffc-a553-302b9d2ba2c0@isocpp.org>
 <CANh-dX=M7niArNp-1sCcqxaREEJSxmjMftgw7uMHN9YnZC-h+w@mail.gmail.com>
 <2555993.7LIlHKVULI@tjmaciei-mobl4> <6c7ffd99-5dc4-41c6-b9b5-8c04a3248974@isocpp.org>
 <3e3e5f1f-7c62-4d03-a084-a49932059a0e@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e0122f2aadf1b2704fdc8d40b
X-Trace: ger.gmane.org 1404938929 23302 80.91.229.3 (9 Jul 2014 20:48:49 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 9 Jul 2014 20:48:49 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBIWV62OQKGQEHPRRTHY@isocpp.org Wed Jul 09 22:48:42 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBIWV62OQKGQEHPRRTHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f197.google.com ([209.85.212.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBIWV62OQKGQEHPRRTHY@isocpp.org>)
	id 1X4yn6-0006L6-5s
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Jul 2014 22:48:36 +0200
Original-Received: by mail-wi0-f197.google.com with SMTP id n3sf1875616wiv.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Jul 2014 13:48:35 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
         :date:message-id:subject: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=jmRfvgyKOVWY6iXTqUqrJVEHnM1/DTJNj41zXJeQGDI=;
        b=Mor9eb7n3ywu5hWYtR3jtOGe089vMpb3uC6C+s92hGnG/I3WwPorlFUSLBskfhMyG/
         79OvmtW8H6HJvnzFQYnr/ujRKBB25b1W9M1wPkRHagGyZPIgGGQTYucLPvPB6DcwGdRS
         oegLHQW08ZOe4voywZJX1iQXtq031CVJJ3wxbYFRUNKpTAXkbIhGMiqHOdAS6hMFv4q1
         u+Fo4+ugsO6CG3sLEww0rxDdoVggPA/DHW+UUxS+OS+SvA7RosvEAJBqSiURGltztrQH
         mqcWkBs6Vw629UG7p/5wI2IthZMehPIQuSNPxPUHaKkWRqUO/5+u2GcwbDFEE6dJk4L6
         yT/w==
X-Gm-Message-State: ALoCoQnWz87R2cRS0s/bC1x6KrM3R0q4SwYLUKGbYdF/ZCkiSmpEFIVkjpTkjCb15t3OSvYK6yII
X-Received: by 10.180.20.140 with SMTP id n12mr1332294wie.7.1404938915750;
        Wed, 09 Jul 2014 13:48:35 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.105.195 with SMTP id go3ls316500wib.36.canary; Wed, 09 Jul
 2014 13:48:34 -0700 (PDT)
X-Received: by 10.194.90.77 with SMTP id bu13mr51717809wjb.92.1404938914023;
        Wed, 09 Jul 2014 13:48:34 -0700 (PDT)
Original-Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [2a00:1450:400c:c03::22e])
        by mx.google.com with ESMTPS id bs20si9612742wib.80.2014.07.09.13.48.33
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 09 Jul 2014 13:48:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c03::22e as permitted sender) client-ip=2a00:1450:400c:c03::22e;
Original-Received: by mail-we0-f174.google.com with SMTP id u57so8040248wes.5
        for <std-proposals@isocpp.org>; Wed, 09 Jul 2014 13:48:33 -0700 (PDT)
X-Received: by 10.194.158.101 with SMTP id wt5mr5901624wjb.136.1404938913518;
 Wed, 09 Jul 2014 13:48:33 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.122.71 with HTTP; Wed, 9 Jul 2014 13:47:53 -0700 (PDT)
In-Reply-To: <3e3e5f1f-7c62-4d03-a084-a49932059a0e@isocpp.org>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2a00:1450:400c:c03::22e as permitted
 sender) smtp.mail=nliber@gmail.com;       dkim=pass header.i=@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:11761
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11761>

--089e0122f2aadf1b2704fdc8d40b
Content-Type: text/plain; charset=UTF-8

On 9 July 2014 15:25, <b.kozicki@gmail.com> wrote:

> FWIW, I agree with the point made that fixing single case of dangling
> reference from "optional<R>::value() &&" while sacrificing performance and
> (more importantly) library consistency is not worth it. Personally I would
> prefer if value() && overload returned rvalue-reference rather than value.
>

Personally, I would prefer that a function we call value() actually return
something by value.  But I suppose that is part of a different discussion,
since it doesn't now...
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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/.

--089e0122f2aadf1b2704fdc8d40b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 9 July 2014 15:25,  <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:b.kozicki@gmail.com" target=3D"_blank">b.kozicki@gmail.com</a>&gt;</sp=
an> wrote:<br><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">

<div dir=3D"ltr"><div>FWIW, I agree with the point made that fixing single =
case of dangling reference from &quot;optional&lt;R&gt;::value() &amp;&amp;=
&quot; while sacrificing performance and (more importantly) library consist=
ency is not worth it. Personally I would prefer if value() &amp;&amp; overl=
oad returned rvalue-reference rather than value. </div>

</div></blockquote><div><br></div><div>Personally, I would prefer that a fu=
nction we call value() actually return something by value. =C2=A0But I supp=
ose that is part of a different discussion, since it doesn&#39;t now...</di=
v>

</div>-- <br>=C2=A0Nevin &quot;:-)&quot; Liber=C2=A0 &lt;mailto:<a href=3D"=
mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@eviloverlord.com</a>=
&gt;=C2=A0 (847) 691-1404
</div></div>

<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 />

--089e0122f2aadf1b2704fdc8d40b--

.
