220 11789 <CAFk2RUbCjbgvpZ00AVPA=dk61YkUtpo=U9ZXrHf7QXSDh1dgjQ@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: Thu, 10 Jul 2014 09:27:55 +0300
Lines: 36
Approved: news@gmane.org
Message-ID: <CAFk2RUbCjbgvpZ00AVPA=dk61YkUtpo=U9ZXrHf7QXSDh1dgjQ@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>
	<CAFk2RUa5foB0ySVSjfc3t6cBOWE-+Qt76jnRv3X=FHP6ntpPjw@mail.gmail.com>
	<F80F564C-1208-4A65-AA1F-382144A3D16A@gmail.com>
	<CAFk2RUYEdZn6t72-ajwY2z4PVLN_wQc12EMX3ycVS12p6+QYxA@mail.gmail.com>
	<3EF9F5C2-EF9D-4DC5-9F53-82CA1155D4DF@gmail.com>
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 1404973684 31653 80.91.229.3 (10 Jul 2014 06:28:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 10 Jul 2014 06:28:04 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRB27E7COQKGQE5ENN5FI@isocpp.org Thu Jul 10 08:27:57 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRB27E7COQKGQE5ENN5FI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f200.google.com ([209.85.223.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRB27E7COQKGQE5ENN5FI@isocpp.org>)
	id 1X57pl-0007Qj-8h
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Jul 2014 08:27:57 +0200
Original-Received: by mail-ie0-f200.google.com with SMTP id tp5sf3678162ieb.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Jul 2014 23:27:56 -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=8URkKXp3+zyI2/8Ery0U3tsm7NYFbQEMqiFd/S21frA=;
        b=aokAtsNTeACrZ+bMER/rUzTDPpK3kdlOtpZkZMKthHDQqoDc8JQba3ZkscRzOnpzm8
         m6lo+NtHaurACKTlbMmiHYExDUxu9BNW3RUuAZImxmLHoyXbwZMikqShkX5nQNUPz5Ux
         GUzXYRoYfWQF5lAG4XZrNztO/b3B9NmBIecPmn08jV+cvXuBHC5rxFIE6DMV5069BcC6
         JG51chMYXgjejSwqRyFcFkaF/9TGDU7A27sUfTmUhemg+Q/jU1SA/3KvZMYdfV2Xvlwe
         fkeTClIHJRi0D93dufwTKaOleh/uApHHd+JcrBnbAjxH0/ri3pEzAKCKcTOWchXSinUn
         ZWug==
X-Gm-Message-State: ALoCoQlkynbly3uRxKGhbMBXMaKc//6qKu26E7pbO550GyPT18GTN6PMVmYeT+4Uz5kmbPzReDTZ
X-Received: by 10.182.213.37 with SMTP id np5mr23039466obc.36.1404973676361;
        Wed, 09 Jul 2014 23:27:56 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.32.203 with SMTP id h69ls2734500qgh.56.gmail; Wed, 09 Jul
 2014 23:27:55 -0700 (PDT)
X-Received: by 10.140.19.109 with SMTP id 100mr74287593qgg.80.1404973675790;
        Wed, 09 Jul 2014 23:27:55 -0700 (PDT)
Original-Received: from mail-qc0-x22c.google.com (mail-qc0-x22c.google.com [2607:f8b0:400d:c01::22c])
        by mx.google.com with ESMTPS id h17si564785qar.70.2014.07.09.23.27.55
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 09 Jul 2014 23:27:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c01::22c as permitted sender) client-ip=2607:f8b0:400d:c01::22c;
Original-Received: by mail-qc0-f172.google.com with SMTP id l6so331799qcy.3
        for <std-proposals@isocpp.org>; Wed, 09 Jul 2014 23:27:55 -0700 (PDT)
X-Received: by 10.140.97.227 with SMTP id m90mr71038262qge.15.1404973675452;
 Wed, 09 Jul 2014 23:27:55 -0700 (PDT)
Original-Received: by 10.224.31.137 with HTTP; Wed, 9 Jul 2014 23:27:55 -0700 (PDT)
In-Reply-To: <3EF9F5C2-EF9D-4DC5-9F53-82CA1155D4DF@gmail.com>
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:c01::22c 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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:11789
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11789>

On 10 July 2014 09:22, David Krauss <potswa@gmail.com> wrote:
>
> On 2014=E2=80=9307=E2=80=9310, at 2:17 PM, Ville Voutilainen <ville.vouti=
lainen@gmail.com>
> wrote:
>
> Returning by rvalue reference may be tempting, but that is the semantic o=
f
> move(). It does not transfer ownership, it only provides the caller with =
a
> handle to accept ownership. Returning an rvalue reference is something on=
ly
> special functions should do.
>
>
> I have no idea where this guideline popped out of.
>
>
> Which part? Name three functions that return an rvalue reference. There=
=E2=80=99s
> move(), forward(), and ??? .

get() from a pair rvalue, get() from a tuple rvalue, get() from an array rv=
alue.

--=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/.

.
