220 5029 <d7f0aad6-d332-4d4b-8df6-3f76c21a10c8@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: tomaszkam@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Require that this should be always caputred by copy.
Date: Thu, 13 Jun 2013 22:41:58 -0700 (PDT)
Lines: 62
Approved: news@gmane.org
Message-ID: <d7f0aad6-d332-4d4b-8df6-3f76c21a10c8@isocpp.org>
References: <51bf2631-aed7-4433-b16d-15ee15e87f29@isocpp.org>
 <CAGg_6+N6v9re4xTwQSukyCXGDhs5FdSgFks54pTZP_8gq-hziQ@mail.gmail.com>
 <CAFk2RUbs4AvOhUKG9mEVeMyAsNPubghHazwx-7BE3HS=_s++ow@mail.gmail.com>
 <CAOfiQqny-c6wrCr8wOMtDt4sGaGHBR=NaR9-qB91R2bX-QdOMA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_345_6933156.1371188518509"
X-Trace: ger.gmane.org 1371188521 32281 80.91.229.3 (14 Jun 2013 05:42:01 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 14 Jun 2013 05:42:01 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDNPVXXG6IGBBJ625KGQKGQE2G2OUMQ@isocpp.org Fri Jun 14 07:42:02 2013
Return-path: <std-proposals+bncBDNPVXXG6IGBBJ625KGQKGQE2G2OUMQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yh0-f70.google.com ([209.85.213.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDNPVXXG6IGBBJ625KGQKGQE2G2OUMQ@isocpp.org>)
	id 1UnMlt-0000JL-6N
	for gclcip-std-proposals@m.gmane.org; Fri, 14 Jun 2013 07:42:01 +0200
Original-Received: by mail-yh0-f70.google.com with SMTP id l109sf212512yhq.5
        for <gclcip-std-proposals@m.gmane.org>; Thu, 13 Jun 2013 22:42:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=wCUTBL9C8e+iWNlNCsGHDNSA6J8fXab4mG+92ggsLFc=;
        b=vJ3KgPAPFc/668AWRUAHDTVYAaJUzljfkXI6AzOU504hmlzdpoX/fdvCUBG62UZw4e
         YmWZz7DKZQ9IYsro4bxua4u1Jr3fudB2G294rHb+4KjOH/0EvGX5ZZzH62isonaKOuMr
         Q1d43l0rkNBl1tum264j3v7kOxm5g4bS05npy/4aG6FnVb/7TIk2dp3+LjqJT9xPtKzR
         qDQRoI20Mmserf+9gNK+KOQiiRmJYQKOjyy5PkkSBHoygrHSkNlNj/ptEtaNjuCrpxDB
         i43BqqCNDnvBNuGsvh89yOatq0vowRDhOFI+y/ToLAgLRJ1PJMpGDIQ2a9g4z3BR3xZH
         qVgA==
X-Received: by 10.224.42.141 with SMTP id s13mr472313qae.3.1371188520106;
        Thu, 13 Jun 2013 22:42:00 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.129.69 with SMTP id nu5ls73402qeb.88.gmail; Thu, 13 Jun
 2013 22:41:59 -0700 (PDT)
X-Received: by 10.49.35.195 with SMTP id k3mr14998qej.2.1371188519130;
        Thu, 13 Jun 2013 22:41:59 -0700 (PDT)
In-Reply-To: <CAOfiQqny-c6wrCr8wOMtDt4sGaGHBR=NaR9-qB91R2bX-QdOMA@mail.gmail.com>
X-Original-Sender: tomaszkam@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:5029
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5029>

------=_Part_345_6933156.1371188518509
Content-Type: text/plain; charset=ISO-8859-1

For may point of view standard is requiring the this to by captured by 
copy: *If this is captured, each odr-use of this
is transformed into an access to the corresponding unnamed data member of 
the closure type, cast (5.4)
to the type of this.* and *It is unspecified whether additional unnamed 
non-static data members are declared
in the closure type for entities captured by reference.*

While the statements about the type of capture, suggest that this is 
captured by reference if it is implicitly captured by [&], so  I think that 
is a defect, and the wording
should be changed to say explicitly that this is always captured by value.

-- 

--- 
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 email 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-proposals/.



------=_Part_345_6933156.1371188518509
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

For may point of view standard is requiring the this to by captured by copy=
: <span style=3D"font-family: courier new,monospace;"><b>If this is capture=
d, each odr-use of this<br>is transformed into an access to the correspondi=
ng unnamed data member of the closure type, cast (5.4)<br>to the type of th=
is.</b> <span style=3D"font-family: arial,sans-serif;">and</span> </span><s=
pan style=3D"font-family: courier new,monospace;"><font face=3D"arial,sans-=
serif"><span style=3D"font-family:courier new,monospace"><b>It is unspecifi=
ed whether additional unnamed non-static data members are declared<br>in th=
e closure type for entities captured by reference.</b></span></font></span>=
<br><br>While the statements about the type of capture, suggest that this i=
s captured by reference if it is implicitly captured by [&amp;], so&nbsp; I=
 think that is a defect, and the wording<br>should be changed to say explic=
itly that this is always captured by value.<br><br>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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 />
&nbsp;<br />
&nbsp;<br />

------=_Part_345_6933156.1371188518509--

.
