220 6769 <aaaf71a0-420f-4868-bd10-df1bf6bbe841@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: tomaszkam@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Revision of N3702: Introducing an optional
 parameter for mem_fn.
Date: Sun, 29 Sep 2013 07:35:27 -0700 (PDT)
Lines: 60
Approved: news@gmane.org
Message-ID: <aaaf71a0-420f-4868-bd10-df1bf6bbe841@isocpp.org>
References: <f0fa2e29-b024-4fa9-a12c-99d3f8599461@isocpp.org>
 <d92e0d83-366a-4ef0-8df2-c17994ab0755@isocpp.org> <0ffade3d-ac13-434c-b20a-85d611783fc1@isocpp.org>
 <2284c2d2-ec8e-43fb-90e7-c43ac9dc92c2@isocpp.org> <505813ae-956c-4693-b793-2ba47107c09c@isocpp.org>
 <CANh-dXnis=-E_PvEz4L+RAHmz5aqcnKZqqYfhwX0WM0vSC9MKw@mail.gmail.com>
 <a15d9ee3-a062-4309-9798-21203e5c2280@isocpp.org>
 <b0fea25c-5e03-408e-b93a-14061c41a3ef@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_184_33045817.1380465327980"
X-Trace: ger.gmane.org 1380465331 11496 80.91.229.3 (29 Sep 2013 14:35:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 29 Sep 2013 14:35:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDNPVXXG6IGBBMPVUCJAKGQEFKFPPPY@isocpp.org Sun Sep 29 16:35:34 2013
Return-path: <std-proposals+bncBDNPVXXG6IGBBMPVUCJAKGQEFKFPPPY@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+bncBDNPVXXG6IGBBMPVUCJAKGQEFKFPPPY@isocpp.org>)
	id 1VQI5q-0003N9-JZ
	for gclcip-std-proposals@m.gmane.org; Sun, 29 Sep 2013 16:35:30 +0200
Original-Received: by mail-ie0-f199.google.com with SMTP id e14sf15726422iej.2
        for <gclcip-std-proposals@m.gmane.org>; Sun, 29 Sep 2013 07:35:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=UJKZi01n84MvEqLUL6bEvWomr3RjzpgJPUE3GsiBSfE=;
        b=EMRbmwEJsphb/sT5m06Ou3vSj2566+cYSySAnBy0DqTgjpfHgnKRcFzDKqCFyzq2v+
         Vv+Cz+YpvBTRZ/IPQN19YivZBjf+hsa86L+CQoKmOGnVd3L9i2hRahk8Q4Cij2XSVlKs
         ijQirO2mv3tGLUvSzQTx52pmrjPGQtJvqg7QbDw2V3geb84hVDCOVZEei7E+6YNHhKWB
         SlqDF4fHvCKIcF1HD9ytFpCAfYQc0LmHwcH5uTy+7hcFYb9hAFGTn05p62xag1PN1og0
         59cq2n6pZ6bDlxzvz0reu1FHvEInICMTFXUn4Q9kxJKDmiaW8EXki908HOchSlwkQtXh
         oQOg==
X-Received: by 10.42.247.68 with SMTP id mb4mr10577525icb.14.1380465329560;
        Sun, 29 Sep 2013 07:35:29 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.25.97 with SMTP id b1ls1331629igg.1.canary; Sun, 29 Sep
 2013 07:35:29 -0700 (PDT)
X-Received: by 10.50.102.97 with SMTP id fn1mr353353igb.16.1380465329136;
        Sun, 29 Sep 2013 07:35:29 -0700 (PDT)
In-Reply-To: <b0fea25c-5e03-408e-b93a-14061c41a3ef@isocpp.org>
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:6769
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6769>

------=_Part_184_33045817.1380465327980
Content-Type: text/plain; charset=ISO-8859-1



> The* decltype(ts),* not* decltype(auto),* otherwise the type is not clear.
>
That was a mistake. 

As for the return *-> decltype(auto)*, it was always optional for lambdas, 
> especially it there is one return statement=
>
> No, the return ->auto is optional. The return decltype(auto) is necessary 
if the wrapped function returns by reference - by default lambda will 
deduce return 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_184_33045817.1380465327980
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><blockquote class=3D"gmail_quote" style=3D"margin: 0;m=
argin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=
=3D"ltr"><div><font face=3D"LMMono9-Regular" size=3D"1"><font face=3D"LMMon=
o9-Regular" size=3D"1"><p align=3D"LEFT">The<b> decltype(ts),</b> not<b> de=
cltype(auto),</b> otherwise the type is not clear.</p></font></font></div><=
/div></blockquote><div>That was a mistake. <br><br></div><blockquote class=
=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #cc=
c solid;padding-left: 1ex;"><div dir=3D"ltr"><div><font face=3D"LMMono9-Reg=
ular" size=3D"1"><font face=3D"LMMono9-Regular" size=3D"1"><p align=3D"LEFT=
">As for the return <font face=3D"Courier New"><b>-&gt; decltype(auto)</b>,=
 it was always optional for lambdas, especially it there is one return stat=
ement=3D</font></p></font></font><br></div></div></blockquote><div>No, the =
return -&gt;auto is optional. The return decltype(auto) is necessary if the=
 wrapped function returns by reference - by default lambda will deduce retu=
rn by value. <br></div></div>

<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 />

------=_Part_184_33045817.1380465327980--

.
