220 11817 <CAOHCbisZkTzVzBE+Xq1QXUUP=7QtosJAqjoQ4FSr9UbMnFEvsQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: N4078: Rvalue reference overloads for value()
 method returns object by value
Date: Thu, 10 Jul 2014 16:38:25 -0400
Lines: 85
Approved: news@gmane.org
Message-ID: <CAOHCbisZkTzVzBE+Xq1QXUUP=7QtosJAqjoQ4FSr9UbMnFEvsQ@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>
	<CAOHCbiu-RQ6T4b0nJpDmFdTOgsh++h+ofHr9PFs9T1tFK4u9nA@mail.gmail.com>
	<e3364a50-8c57-42c5-8ec0-29b6603e3181@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c3c3f879741904fddccee1
X-Trace: ger.gmane.org 1405024717 22587 80.91.229.3 (10 Jul 2014 20:38:37 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 10 Jul 2014 20:38:37 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUZ5QWKNQIMF473TUCRUBHYG5QEG@isocpp.org Thu Jul 10 22:38:30 2014
Return-path: <std-proposals+bncBCUZ5QWKNQIMF473TUCRUBHYG5QEG@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-we0-f197.google.com ([74.125.82.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUZ5QWKNQIMF473TUCRUBHYG5QEG@isocpp.org>)
	id 1X5L6q-0006Rv-A0
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Jul 2014 22:38:28 +0200
Original-Received: by mail-we0-f197.google.com with SMTP id q59sf74169wes.0
        for <gclcip-std-proposals@m.gmane.org>; Thu, 10 Jul 2014 13:38: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: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=Hh2j6AVo/cFPk06JJqsqfOUKUbur57YL1yFcXGbmoMs=;
        b=cn/7Yb73ZLPwbaSZFIk0sWYvVtIWNWEmJfXVKN7K7epJjhDou3gJ7DR4EgrIRD2QVK
         xW6H/83AR2fFOxqwJcpupNXaQydUwbVZRpj3+gUbIftqLtvH1s1MTnCSy7mBQ6lJdRQi
         B8qbEzskb2GgwzBOC/QsGatxHCLPIC8skeieZe7qXBJcz7OYIKR+VD7RLcCErcLzQrAv
         1CiIBLoGFKbPPZ4zJrUUUaDI+c4CX07WuMwAkdPeGv6lxF0j+AyYYSvRMC2cbsiO9+ZN
         ZD5w70K3fq8JiE8vo+rR3abhqILVbOeDhHUgVftiyvYIknMUp7Rnf8fEm52XhEg2wxwU
         ZNpQ==
X-Gm-Message-State: ALoCoQmJOZBO/LQiVgM18qt/z8shNvQdQ0ZnA7hxCVjQ7PG7p6qlLlg6vhBo/fGbD9EipblqKtMN
X-Received: by 10.112.188.229 with SMTP id gd5mr681806lbc.13.1405024707997;
        Thu, 10 Jul 2014 13:38:27 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.20.3 with SMTP id j3ls56580lae.99.gmail; Thu, 10 Jul 2014
 13:38:25 -0700 (PDT)
X-Received: by 10.112.163.65 with SMTP id yg1mr103887lbb.44.1405024705675;
        Thu, 10 Jul 2014 13:38:25 -0700 (PDT)
Original-Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [2a00:1450:4010:c03::230])
        by mx.google.com with ESMTPS id kx3si257190lac.11.2014.07.10.13.38.25
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 10 Jul 2014 13:38:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::230 as permitted sender) client-ip=2a00:1450:4010:c03::230;
Original-Received: by mail-la0-f48.google.com with SMTP id el20so116328lab.7
        for <std-proposals@isocpp.org>; Thu, 10 Jul 2014 13:38:25 -0700 (PDT)
X-Received: by 10.112.211.201 with SMTP id ne9mr26050515lbc.9.1405024705537;
 Thu, 10 Jul 2014 13:38:25 -0700 (PDT)
Original-Received: by 10.112.163.169 with HTTP; Thu, 10 Jul 2014 13:38:25 -0700 (PDT)
In-Reply-To: <e3364a50-8c57-42c5-8ec0-29b6603e3181@isocpp.org>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::230 as permitted
 sender) smtp.mail=tvaneerd@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:11817
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11817>

--001a11c3c3f879741904fddccee1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 10, 2014 at 4:34 PM, <tomaszkam@gmail.com> wrote:

> W dniu czwartek, 10 lipca 2014 22:29:43 UTC+2 u=C5=BCytkownik Tony V E na=
pisa=C5=82:
>
>>
>> I may have missed it within the discussion, but has anyone suggested
>> making this version of the value() function =3Ddeleted?
>>
>> Tony
>>
>>
> You would like the following code:
>   std::optional<T> f();
>   std::cout << f.value() << std::end;
> To be ill-formed because of use of deleted method. May I ask why?
>
>
>
Because there seemed to be discrepancies as to how it should work...


.... and because I didn't think it through very far :-)

--=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/.

--001a11c3c3f879741904fddccee1
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">On Thu, Jul 10, 2014 at 4:34 PM,  <span dir=3D"ltr">&lt;<a href=3D"=
mailto:tomaszkam@gmail.com" target=3D"_blank">tomaszkam@gmail.com</a>&gt;</=
span> wrote:<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">W dniu czwartek, 10 lipca 2=
014 22:29:43 UTC+2 u=C5=BCytkownik Tony V E napisa=C5=82:<div class=3D""><b=
lockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-=
left:1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr"><div><br></div>I may have missed it within the discussion,=
 but has anyone suggested making this version of the value() function =3Dde=
leted?<br><div><br></div><div>Tony<br>
</div><div><br></div></div></blockquote></div><div><br>You would like the f=
ollowing code:<br>=C2=A0 std::optional&lt;T&gt; f();<br>=C2=A0 std::cout &l=
t;&lt; f.value() &lt;&lt; std::end;<br>To be ill-formed because of use of d=
eleted method. May I ask why?<br>
</div></div><div class=3D"HOEnZb"><div class=3D"h5">

<p></p><br></div></div></blockquote><div><br></div><div>Because there seeme=
d to be discrepancies as to how it should work...<br><br><br></div><div>...=
 and because I didn&#39;t think it through very far :-)<br><br>=C2=A0<br></=
div>
</div></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 />

--001a11c3c3f879741904fddccee1--

.
