220 24116 <3943320.mcaVf4CF4p@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: lambda template?
Date: Mon, 01 Feb 2016 19:21:11 -0800
Lines: 46
Approved: news@gmane.org
Message-ID: <3943320.mcaVf4CF4p@tjmaciei-mobl4>
References: <64578f60-f8cf-4fdf-91c2-9df72e9dfe09@isocpp.org> <2001676.eMFQMqOmdd@tjmaciei-mobl4> <b2683d3e-dead-4bfc-bf0d-5ca0f46651e9@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 1454383296 19938 80.91.229.3 (2 Feb 2016 03:21:36 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 2 Feb 2016 03:21:36 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBLWBYC2QKGQE4M2KKGY@isocpp.org Tue Feb 02 04:21:28 2016
Return-path: <std-proposals+bncBCB4TK757YBRBLWBYC2QKGQE4M2KKGY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f70.google.com ([209.85.215.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBLWBYC2QKGQE4M2KKGY@isocpp.org>)
	id 1aQRWv-0003XA-UN
	for gclcip-std-proposals@m.gmane.org; Tue, 02 Feb 2016 04:21:25 +0100
Original-Received: by mail-lf0-f70.google.com with SMTP id e36sf47946697lfi.3
        for <gclcip-std-proposals@m.gmane.org>; Mon, 01 Feb 2016 19:21:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :mime-version:content-transfer-encoding:content-type
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=nEfOLbPTsEkknVnr4qxH8glaV5HcC90v9S2c5zV+LiA=;
        b=neJo3W+h5psMSE2/Jcop0cRO6xuBTXafllaM3lvj0IoHeATFGttZ5JH4rWaNvqkINl
         VNL1o2Qfe+NXnn4tTmS5en/I1lf+Ojc0pNmvkw9/dtMUfqo8F5GfT2SMDb/WOmrUljl3
         VyHq23OHflalUV3icPG9ihbkdeP/qSXDuGG9arGQKvtK+TODBqlkjGS6G9fzLtWINdwn
         N1n7frdWn5erObYf/4cvO2Lc7l/TQRl5QAW0ME9VICak/gQMsvli7dl6nM13yl+VaSmk
         PRcltvXL6Pvqrozo2eyNi+wQpkKJPmHwkewFTT/ZD1evEhZMR+v3jUBaTFXmI 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-transfer-encoding
         :content-type:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=nEfOLbPTsEkknVnr4qxH8glaV5HcC90v9S2c5zV+LiA=;
        b=lrvv4HoDPvsEc+8KiFcNVLEOSQ9f+VF1cs3fssAIC9bgMzzH22q+zMZ4+g2r6AB0Uo
         1iz2LMJV8mZXiBcfaq8D6FPU4SoSQEu6M6g2dlxab9hENoyJSew1SvUYT3FbYS5CKkkM
         CcHSbX+pbll1DaQtZGGEgjFsNUQTnUAuXnGFwPp2tGyH6EDTZzrDmYzT/ZFaItQF6rf3
         pxftM3q7zFIdMH3kZ+GlNTO6bUxOSeYZinWHEE4BocEVh8YGtwybmLbhFLxKmsHgy6BF
         EgAYf2OZJ1F/veZ/01THz+3VkL99w3vwb+213ks+YNBG0KX2qTwFLLkPS 
X-Gm-Message-State: AG10YOQxTpNbBPbwU109Ir2oGvSBfscVFSGqU9e0Z1fGCp+2NUowbiVenued2rACnkEQSA==
X-Received: by 10.28.45.23 with SMTP id t23mr2037033wmt.0.1454383285363;
        Mon, 01 Feb 2016 19:21:25 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.14.85 with SMTP id 82ls25986wmo.38.gmail; Mon, 01 Feb 2016
 19:21:18 -0800 (PST)
X-Received: by 10.194.79.37 with SMTP id g5mr27524893wjx.89.1454383278456;
        Mon, 01 Feb 2016 19:21:18 -0800 (PST)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id km9si22038302wjb.149.2016.02.01.19.21.18
        for <std-proposals@isocpp.org>;
        Mon, 01 Feb 2016 19:21:18 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl4.localnet (jfdmzpr02-ext.jf.intel.com [134.134.137.71])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 9FA9911A426
	for <std-proposals@isocpp.org>; Mon,  1 Feb 2016 19:21:17 -0800 (PST)
User-Agent: KMail/4.14.10 (Linux/4.3.3-6-default; KDE/4.14.15; x86_64; ; )
In-Reply-To: <b2683d3e-dead-4bfc-bf0d-5ca0f46651e9@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:24116
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24116>

On Monday 01 February 2016 17:53:44 =EC=9C=A4=ED=9B=88=EB=82=A8 wrote:
> for example)
>=20
> std::string f(std::string, std::string, std::string, std::string, int, in=
t,
> float) {
> }
>=20
> template<typename... TS>
> auto test(TS&&... ts1) {
> auto fn =3D [&ts1...]<TS...>(auto&&... args) mutable {
> return f(std::forward<TS>(ts1)..., std::forward<decltype(args)>(args)...)=
;
> };
	return fn;		// was missing
> }

Why do you need the <TS...> in the lambda declaration? This example works=
=20
without it.

Can you give a concrete example of where this would be needed? Not somethin=
g=20
that shows how this could be used if it existed, but something that shows h=
ow=20
it solves a problem that was either not solved before or wasn't as easy to=
=20
solve.

--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

--=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 https://groups.google.com/a/isocpp.org/group/std-propos=
als/.

.
