220 11795 <CAFk2RUZigiwLwFpfVXuFS8cqy38hPG3OGhGUi+iNwSYuYvyAyQ@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:49:23 +0300
Lines: 34
Approved: news@gmane.org
Message-ID: <CAFk2RUZigiwLwFpfVXuFS8cqy38hPG3OGhGUi+iNwSYuYvyAyQ@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>
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 1404974971 11923 80.91.229.3 (10 Jul 2014 06:49:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 10 Jul 2014 06:49:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRB47O7COQKGQEKOESOSA@isocpp.org Thu Jul 10 08:49:25 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRB47O7COQKGQEKOESOSA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yh0-f71.google.com ([209.85.213.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRB47O7COQKGQEKOESOSA@isocpp.org>)
	id 1X58AW-0007Cg-RK
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Jul 2014 08:49:25 +0200
Original-Received: by mail-yh0-f71.google.com with SMTP id t59sf33956856yho.10
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Jul 2014 23:49:23 -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=xOzOzO04d/ldH8OzUk3DYDBO8V2r1duPzkwj0Q1d37c=;
        b=OANeX0IvgOVgwdZ6bYlo/A4IVQnR05raiMubUCdXbbNuw8hVVzGrA0PaNqq40UpjRY
         CizBVfJ1OD7HRM3C69ngoLVE2IGYfF5VlbtyHABH0C42o5DGzcyGbRo68xtqUizyGDzd
         yaJOKoVASYt/OVATzC31eXWswA0vIsPXpKZKFiB8UN5IEUNzeJCt6FbzMlcBDYNNf25w
         vWIg//bvZj9M9bwmPisFsLe/1pRd1V3K4Cm4j69gGN3jJgSJiyeAG1U1VF/ymVSCsE0k
         Sq/P3llHCk3qY6SWsuXM+Dyuylws4VZrT1jN0Z9Uix2TEtrcU3GnpiNuXMrxlfdMV+VQ
         35xw==
X-Gm-Message-State: ALoCoQnv06jrM3mmXy2rOxYBdsEFrNpE7rOcJvFMNTOLbQ3HyNhrK6Kt+lXNx1ys5RVljYxk2u8a
X-Received: by 10.236.86.178 with SMTP id w38mr12878662yhe.13.1404974963892;
        Wed, 09 Jul 2014 23:49:23 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.87.207 with SMTP id r73ls2692043qgd.44.gmail; Wed, 09 Jul
 2014 23:49:23 -0700 (PDT)
X-Received: by 10.140.104.176 with SMTP id a45mr10034612qgf.75.1404974963314;
        Wed, 09 Jul 2014 23:49:23 -0700 (PDT)
Original-Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [2607:f8b0:400d:c01::22e])
        by mx.google.com with ESMTPS id q45si24625705qga.96.2014.07.09.23.49.23
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 09 Jul 2014 23:49:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400d:c01::22e as permitted sender) client-ip=2607:f8b0:400d:c01::22e;
Original-Received: by mail-qc0-f174.google.com with SMTP id x13so7100308qcv.19
        for <std-proposals@isocpp.org>; Wed, 09 Jul 2014 23:49:23 -0700 (PDT)
X-Received: by 10.224.87.130 with SMTP id w2mr77060776qal.5.1404974963205;
 Wed, 09 Jul 2014 23:49:23 -0700 (PDT)
Original-Received: by 10.224.31.137 with HTTP; Wed, 9 Jul 2014 23:49:23 -0700 (PDT)
In-Reply-To: <EF930317-EB97-402E-A3A0-CC46E7E2D998@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::22e 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:11795
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11795>

On 10 July 2014 09:41, David Krauss <potswa@gmail.com> wrote:
> If you=E2=80=99re going to iterate over a sequence within a container, bu=
t you got
> the first iterator from an xvalue, then the sequence is presumed to be de=
ad
> by the first statement in the loop.

The sequence is not dead if I pass the iterator onto a processing function
before the xvalue expires. Which is precisely what the general forwarding c=
ases
do, and what emplace does.

> The example is in this thread, as has been said multiple times already.
> https://groups.google.com/a/isocpp.org/d/msg/std-proposals/jDRQyBWYl8Q/iL=
JFlolCOBgJ
>
>
> That=E2=80=99s just a link to this thread, to a message containing anothe=
r link. The
> text begin() does not occur in that thread.

Yeah, well, that message shows the "forwarding scenario".

--=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/.

.
