220 29460 <eb78d85f-058c-4e87-94a4-691d8ac41a71@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: z.p.gaal@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: for...(T : t) // fold expression improvement
Date: Fri, 18 Nov 2016 05:09:55 -0800 (PST)
Lines: 18
Approved: news@gmane.org
Message-ID: <eb78d85f-058c-4e87-94a4-691d8ac41a71@isocpp.org>
References: <7c87350a-7ac2-489b-b107-ea25a7bd6c74@isocpp.org>
 <110fecc1-a731-f6ad-fa8d-cfe2cb36faaa@gmail.com> <CAFk2RUY6eJ2VpP2wVUcZBM5yJBbrwrJ3TdWBZRoH0Eho+YacfA@mail.gmail.com>
 <609e0194-3fc8-4442-8fc5-ba17abeb04a4@isocpp.org>
 <CAFk2RUYKzPDDML9+M6q6njGC2qhdYDvmYgnpg2r5D5Wb15tt_w@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_5801_1481313698.1479474595617"
X-Trace: blaine.gmane.org 1479474607 21002 195.159.176.226 (18 Nov 2016 13:10:07 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 18 Nov 2016 13:10:07 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDR75JGIQ4JRBJH3XPAQKGQEOPGH4YI@isocpp.org Fri Nov 18 14:09:58 2016
Return-path: <std-proposals+bncBDR75JGIQ4JRBJH3XPAQKGQEOPGH4YI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f199.google.com ([209.85.161.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDR75JGIQ4JRBJH3XPAQKGQEOPGH4YI@isocpp.org>)
	id 1c7ivR-0003ib-7K
	for gclcip-std-proposals@m.gmane.org; Fri, 18 Nov 2016 14:09:54 +0100
Original-Received: by mail-yw0-f199.google.com with SMTP id r204sf473831836ywb.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 18 Nov 2016 05:09:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=sRL3VXXWhRA4qRGt2J9l0OIZnYYwbj+PmNGsKGiaoUw=;
        b=oC2rKJAkGRH1FHMbBA6Jz5Av+7BD4zZHt36voiDIKxXsZMcniI3/G4VllOBdIysRtM
         g94d9r2jAgMihTBxKe7yKL1ApdiYqR2fY0ZKcwwEdqvQB4KzTE81VMIjtDAGIzirBKy4
         TXpnWh/QmZzCer8OYPdKeFxsZ2Z7RuFxDurKlNIRQrvvcAecwpY1/w0V/gyOhAuYSsts
         OqrnxH8cmGUOiIAADBezgTb3jtKMEPUDVhmA6BdhswqP17r87Gw5I795P+csIEedixHy
         6Nx2kqITRonl77AwY/x1epnhMeeIU8M4/Dm9+9dEavTCzmxX6U2PU86NDGEW8T4xjjvA
         qB+A==
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
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=sRL3VXXWhRA4qRGt2J9l0OIZnYYwbj+PmNGsKGiaoUw=;
        b=sd31rljVHO6LfiNLcgDnYdpDfJ6MfWioihygDNhCzBAQ35+85oqgK/KbbQ8uAqtcnh
         KZlv8JmzfuwXj9XxTwZGLCEgkuo9YJze84kaO9lIhp2ud/jy7y7v9SSmPHAYg1XoxSUN
         EFHisaWDs7AvX6pfZbOV6xmh9NsbVt/EeISCkcagn9vU0mgB9jscHWawzwTWLprpQ1Ea
         JRVbaUim7XBsSu1JsxHB/2+kQtHnVfKU9YRQNrLstuE1EjogvogzLYNJ3dGp1j4JBuEA
         4xzXemEz2pK30DjhF6mdmDg+UPx2tl3QXnfg3tC8osdizQnxE6h+8shEW4XG7gSYdVsh
         qNNQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=sRL3VXXWhRA4qRGt2J9l0OIZnYYwbj+PmNGsKGiaoUw=;
        b=OwWGC+Petx5uRQnHgl0LlRtF40cqvpBb6Fn3lG7Pe6nPCyinzRL/ZOKD/vdil6RIJ4
         h5HNFNTC/WmxTangNXNXKAkkZXG7udNuDA49Fz4oDComaHFjY4HMT63ZhIYwSuJYbe3a
         kFBTwsPEsJw7ct1Ltrx508t56A7fKSeOZzAZBqwib36giX2PbqULSNdQnUxkERFEZFnR
         0xRJQZPuM84kiOVml/C1uUkDimC0eDEoxxurkDNwNmeQBodgLvbmr8rE7HJ8rjyXzKJY
         YMoNL91ntL78M/+aJQBvpvl1CFMRd9fZ8kx82cwyzWQrM/O/Fs1svakgstb+ZnvN7lG3
         sivg==
X-Gm-Message-State: AKaTC02de4TBfrR7lwqXO2dYihZIOboMT147DTgcXXq+ILt3oZi03GIrlondpxvUktaMsQ==
X-Received: by 10.129.26.213 with SMTP id a204mr3305326ywa.111.1479474596642;
        Fri, 18 Nov 2016 05:09:56 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.11.2 with SMTP id a2ls6383487ota.16.gmail; Fri, 18 Nov
 2016 05:09:56 -0800 (PST)
X-Received: by 10.157.37.247 with SMTP id q110mr800595ota.5.1479474595969;
        Fri, 18 Nov 2016 05:09:55 -0800 (PST)
In-Reply-To: <CAFk2RUYKzPDDML9+M6q6njGC2qhdYDvmYgnpg2r5D5Wb15tt_w@mail.gmail.com>
X-Original-Sender: z.p.gaal@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: <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:29460
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29460>

------=_Part_5801_1481313698.1479474595617
Content-Type: text/plain; charset=UTF-8

using the array initializer trick it shall work.

int dummy[] = {([&]{ std::cout<<aArgs;
}(),0)...};

(At least from msvc, not tested the others)

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/eb78d85f-058c-4e87-94a4-691d8ac41a71%40isocpp.org.

------=_Part_5801_1481313698.1479474595617--

.
