220 11843 <CAOenAXjf_UnvPvyWBCN5Vet0y9JRec8tLOSVbtQFmoyss-yCaQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Andrzej Krzemienski <akrzemi1@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 11:06:21 +0200
Lines: 78
Approved: news@gmane.org
Message-ID: <CAOenAXjf_UnvPvyWBCN5Vet0y9JRec8tLOSVbtQFmoyss-yCaQ@mail.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>
	<4D3852AD-1AEB-44BA-941C-D645BAD19405@gmail.com>
	<6a4b6425-1167-40c1-acd8-3945c8cd4c74@isocpp.org>
	<ba6906ed-0847-4ea9-94fa-71da23126277@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=f46d0442848452aaee04fde7416a
X-Trace: ger.gmane.org 1405069594 17397 80.91.229.3 (11 Jul 2014 09:06:34 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 11 Jul 2014 09:06:34 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDT2DGOJ34DBBD6S72OQKGQE2R5SRGQ@isocpp.org Fri Jul 11 11:06:24 2014
Return-path: <std-proposals+bncBDT2DGOJ34DBBD6S72OQKGQE2R5SRGQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-la0-f72.google.com ([209.85.215.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDT2DGOJ34DBBD6S72OQKGQE2R5SRGQ@isocpp.org>)
	id 1X5Wme-0006MP-9e
	for gclcip-std-proposals@m.gmane.org; Fri, 11 Jul 2014 11:06:24 +0200
Original-Received: by mail-la0-f72.google.com with SMTP id ty20sf150482lab.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 11 Jul 2014 02:06:24 -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: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=njlZNoUSWMGEn7K2S5bgeUTWaeV62dia4eowy9QNAUU=;
        b=T3Z82PhfW/u/y9538zc3JTWBQgnv3aZAx4k5EUd1unPOQknQhYz9Zxbby/Lw6zX3yZ
         OxZ9OHGywGzvm84vOYc6IeTvFQlqWqAKxrhupXmyIQ/GXdtBFVZrnFBusBS7k/zLjh62
         OgtxS5LD/ymzvPDEEq/eO51o2heTsLjLB5TvBjhpGDwZdZsJNymnw66OHo438wVTMtGO
         h0xLv1zSiq6ukRaSh2ec0a5Qmwym/Cyd9xcEJ3NU8f6wSyMCbFmnRB8rSkiNRjwPWb8m
         ogJnZru4OlIaLzCXJ1DXKSFQ8kfiIYD7a+TVqWaQUHzTgkRwya25mTD9vt92mE8DUdbL
         qO6w==
X-Gm-Message-State: ALoCoQmto1Ue07ozlijpr3B676+l16hiNaZuAyYBZ76/UKLOqnIu2SKIR/C7Fs8H+MOZP5JzVgkS
X-Received: by 10.152.9.228 with SMTP id d4mr5660369lab.1.1405069584018;
        Fri, 11 Jul 2014 02:06:24 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.77.41 with SMTP id p9ls57465wiw.17.canary; Fri, 11 Jul
 2014 02:06:22 -0700 (PDT)
X-Received: by 10.194.90.228 with SMTP id bz4mr64704065wjb.65.1405069582857;
        Fri, 11 Jul 2014 02:06:22 -0700 (PDT)
Original-Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [2a00:1450:400c:c00::22e])
        by mx.google.com with ESMTPS id xn13si2694852wib.13.2014.07.11.02.06.22
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 11 Jul 2014 02:06:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of akrzemi1@gmail.com designates 2a00:1450:400c:c00::22e as permitted sender) client-ip=2a00:1450:400c:c00::22e;
Original-Received: by mail-wg0-f46.google.com with SMTP id m15so728396wgh.5
        for <std-proposals@isocpp.org>; Fri, 11 Jul 2014 02:06:22 -0700 (PDT)
X-Received: by 10.180.94.104 with SMTP id db8mr3194113wib.23.1405069582050;
 Fri, 11 Jul 2014 02:06:22 -0700 (PDT)
Original-Received: by 10.194.152.42 with HTTP; Fri, 11 Jul 2014 02:06:21 -0700 (PDT)
In-Reply-To: <ba6906ed-0847-4ea9-94fa-71da23126277@isocpp.org>
X-Original-Sender: akrzemi1@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of akrzemi1@gmail.com designates 2a00:1450:400c:c00::22e as permitted
 sender) smtp.mail=akrzemi1@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:11843
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11843>

--f46d0442848452aaee04fde7416a
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

2014-07-11 11:03 GMT+02:00 Olaf van der Spek <olafvdspek@gmail.com>:

>
>
> On Friday, July 11, 2014 9:40:16 AM UTC+2, Andrzej Krzemie=C5=84ski wrote=
:
>>
>> So we are not reverting the change. We change further.
>>
>> Am I right?
>>
>>
> I think you are. Though do we still need the & overload if we've got the
> && overload?
>

sure we do. E.g. in order to allow the following use case:

optiona<int> oi =3D readVal();
if (oi && *oi < 0) *oi =3D 0;
return oi;

--=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/.

--f46d0442848452aaee04fde7416a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">2014-07-11 11:03 GMT+02:00 Olaf van der Spek <span dir=3D"ltr">&lt;=
<a href=3D"mailto:olafvdspek@gmail.com" target=3D"_blank">olafvdspek@gmail.=
com</a>&gt;</span>:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D""><br><br>On =
Friday, July 11, 2014 9:40:16 AM UTC+2, Andrzej Krzemie=C5=84ski wrote:<blo=
ckquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">So we are not reverting the change. We change further.<br>=
<br>Am I right?<br><br></div></blockquote><div><br></div></div><div>I think=
 you are. Though do we still need the &amp; overload if we&#39;ve got the &=
amp;&amp; overload?=C2=A0</div>
</div></blockquote><div><br></div><div>sure we do. E.g. in order to allow t=
he following use case:<br><br></div><div>optiona&lt;int&gt; oi =3D readVal(=
);<br></div><div>if (oi &amp;&amp; *oi &lt; 0) *oi =3D 0;<br></div><div>ret=
urn oi; <br>
</div></div><br></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 />

--f46d0442848452aaee04fde7416a--

.
