220 11835 <CAFk2RUZXyD6KANfGkvFqG12H38QVnb1Rn1ETef9fSy7Ui3vsmA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@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 10:53:17 +0300
Lines: 62
Approved: news@gmane.org
Message-ID: <CAFk2RUZXyD6KANfGkvFqG12H38QVnb1Rn1ETef9fSy7Ui3vsmA@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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1405065205 29578 80.91.229.3 (11 Jul 2014 07:53:25 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 11 Jul 2014 07:53:25 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRB3NP72OQKGQE7ZPT7RI@isocpp.org Fri Jul 11 09:53:19 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRB3NP72OQKGQE7ZPT7RI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f199.google.com ([209.85.223.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRB3NP72OQKGQE7ZPT7RI@isocpp.org>)
	id 1X5Vdv-0006bl-8T
	for gclcip-std-proposals@m.gmane.org; Fri, 11 Jul 2014 09:53:19 +0200
Original-Received: by mail-ie0-f199.google.com with SMTP id tr6sf3722556ieb.10
        for <gclcip-std-proposals@m.gmane.org>; Fri, 11 Jul 2014 00:53:18 -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:content-transfer-encoding;
        bh=73OMD9C+vDp6010ayTZ7Ui4LjEqvPfXuE0aP4bS05So=;
        b=UPT7L2WXXYfKchYT4NxEH7vwiy96Q0tXQXLwxm3uIP/op1ieIf9XAZxOqPrLD6AJS4
         XQb0uwiGP0nGfz3ILpMo5UGiwg7960+afSV99f6j5lQROtkQlf8kYtMiwPpmZXG8rbcn
         b9pfPBb6kFCbaXmJyBqRjZeIMs6VIxdOcq7RHLN6ZySyyDpESViTUh0STM9vUGqypqgK
         bG8dynXoPd2BXAeA2yRwKkKp3g05vNCQ0ZU6xyeUV+z0ir4GP5lOL9FDgF+Q3WK7M9sF
         3fEAawCHnO13V3GQ2wAuR6idanfczmVwqDlalMRT2d2MSuwwogmn7FCFHfZnW/ey9PmV
         5awg==
X-Gm-Message-State: ALoCoQnnCFLOmgWjQi0eMqraX86AdTvewB5P/orHIdO0o67S/YEr5zMHSho5tmkD2jCxbOCmUR0H
X-Received: by 10.42.235.132 with SMTP id kg4mr1337500icb.22.1405065198389;
        Fri, 11 Jul 2014 00:53:18 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.88.85 with SMTP id s79ls326602qgd.77.gmail; Fri, 11 Jul
 2014 00:53:17 -0700 (PDT)
X-Received: by 10.140.27.108 with SMTP id 99mr83966106qgw.77.1405065197805;
        Fri, 11 Jul 2014 00:53:17 -0700 (PDT)
Original-Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [2607:f8b0:400d:c00::22d])
        by mx.google.com with ESMTPS id k20si2352680qgd.59.2014.07.11.00.53.17
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 11 Jul 2014 00:53:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c00::22d as permitted sender) client-ip=2607:f8b0:400d:c00::22d;
Original-Received: by mail-qa0-f45.google.com with SMTP id s7so591619qap.4
        for <std-proposals@isocpp.org>; Fri, 11 Jul 2014 00:53:17 -0700 (PDT)
X-Received: by 10.224.71.198 with SMTP id i6mr10870912qaj.76.1405065197731;
 Fri, 11 Jul 2014 00:53:17 -0700 (PDT)
Original-Received: by 10.224.31.137 with HTTP; Fri, 11 Jul 2014 00:53:17 -0700 (PDT)
In-Reply-To: <6a4b6425-1167-40c1-acd8-3945c8cd4c74@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c00::22d as
 permitted sender) smtp.mail=ville.voutilainen@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:11835
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11835>

On 11 July 2014 10:40, Andrzej Krzemie=C5=84ski <akrzemi1@gmail.com> wrote:
> Guys, I just want to summarize what is being discussed here so that every=
one
> is on the same page. We are discussing how overloads operator*() and valu=
e()
> are defined in optional.
>
> Prior to the adoption of N4078, the Fundamentals TS had them as:
> T& operator*();
> T const& operator*() const;
>
>
> T& value();
> T const& value() const;
>
> With the adoption of N4078, Fundamentals TS has:
> T& operator*() &;
> T const& operator*() const&;
> T operator*() &&;            // by value
> T operator*() const&&;       // by value
>
> T& value() &;
> T const& value() const&;
> T value() &&;                // by value
> T value() const&&;           // by value
>
> Now the change that Anna and Tomasz and Ville are considering (an I suppo=
rt)
> is for Fundamentals TS to have:
> T& operator*() &;
> T const& operator*() const&;
> T&& operator*() &&;          // by rvalue ref
>
>
> T& value() &;
> T const& value() const&;
>
> T&& value() &&;                // by rvalue ref
>
> So we are not reverting the change. We change further.
>
> Am I right?

Yes, although the signatures I'm aiming at are in
http://open-std.org/JTC1/SC22/WG21/docs/papers/2014/n3982.html


Whether we'll need separate signatures for const T&& needs to be checked wi=
th
LEWG.

--=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/.

.
