220 29463 <CAOU91OOjjyKjwS8VRLSAoZ3-iS8B57Yi8Jyz=fHqcXFepFLqDw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Klaim_=2D_Jo=C3=ABl_Lamotte?= <mjklaim@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: for...(T : t) // fold expression improvement
Date: Fri, 18 Nov 2016 15:18:11 +0100
Lines: 84
Approved: news@gmane.org
Message-ID: <CAOU91OOjjyKjwS8VRLSAoZ3-iS8B57Yi8Jyz=fHqcXFepFLqDw@mail.gmail.com>
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>
 <eb78d85f-058c-4e87-94a4-691d8ac41a71@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a1143a046e0ad96054193f9d4
X-Trace: blaine.gmane.org 1479478694 16808 195.159.176.226 (18 Nov 2016 14:18:14 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 18 Nov 2016 14:18:14 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD3NR2WQQ4IBBJE3XTAQKGQETQ76ZDQ@isocpp.org Fri Nov 18 15:18:10 2016
Return-path: <std-proposals+bncBD3NR2WQQ4IBBJE3XTAQKGQETQ76ZDQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f71.google.com ([209.85.218.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD3NR2WQQ4IBBJE3XTAQKGQETQ76ZDQ@isocpp.org>)
	id 1c7jzV-0003pP-UZ
	for gclcip-std-proposals@m.gmane.org; Fri, 18 Nov 2016 15:18:10 +0100
Original-Received: by mail-oi0-f71.google.com with SMTP id v84sf225895365oie.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 18 Nov 2016 06:18:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=oiylHjVtzHuxHUcrn+Vgt5+ti3AHY6i6w77Tl/6ALKE=;
        b=aQNSW6Exd8S+zMlcq3HfbclYor29ruP7zd5DBcYdrs5QJaz/geTLK6oarCg79skQ2N
         JqdIY/EeYLCXc6TrOgl09FKUIX360Awp09MS2lCbVo1C1DGXQMkBScPRyhavg2+83G1r
         PX1u1zzRy0mIuzQADe/JSLspjFAhRELojY8P8Iv4q7Wbnvab4dnpa8hGQ267NG+JShhj
         FabuglAxOAh2IrfNj9XA3ocNvL/2HXrPkJ3n6jsqJ9oXvR01cnKfw7sfI3IbnhyU5T0R
         cNiLwciIrkqTcdIT+upF8aoecZwLz6jxbROJg1k5bDaFSL93jHhPhHPQGz45MF8KGRM2
         aW0Q==
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:from:date
         :message-id:subject:to: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=oiylHjVtzHuxHUcrn+Vgt5+ti3AHY6i6w77Tl/6ALKE=;
        b=RC2ak9r9qQLu5cKslqvwQDxvB+J+JsFQJBkYTssGnmX+1wBOc/ky/S+Lg/Z77HbxiG
         bDQweZyNYHBWXDzduw4lxWCIVn3+5mnwi+F55bVKihbGxCHc5YjLTfg69P2P9IVUz+Wb
         HHTYEuzasaxl7V47hZOkhMFsu1KtZ0za9C1/GouPEJ1F3cjhNIIqq9Sy4xy2mdM19/x6
         GQ83BuCUG+ETduV/CRyYvlt0QxQHN8p81LyV6fAcGyzmHX28pt/Gd8PrUPJkJFqZafht
         IQThuWrYrQ+I20ne7dTU06+EXCC9hdFixT6uTKT9Y5o35kGC3yWFxw/iph8t4JzozW9e
         EZaQ==
X-Gm-Message-State: AKaTC015BVuSWCVvEi96YYS/am2WGv818yo7FnOCGOIxntLU9WdgwLUqqQlbhg1ND9Z21Q==
X-Received: by 10.157.41.74 with SMTP id d68mr3046664otb.52.1479478693063;
        Fri, 18 Nov 2016 06:18:13 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.21.102 with SMTP id z35ls7595002otz.38.gmail; Fri, 18 Nov
 2016 06:18:12 -0800 (PST)
X-Received: by 10.176.68.38 with SMTP id m35mr5733556uam.175.1479478692146;
        Fri, 18 Nov 2016 06:18:12 -0800 (PST)
Original-Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com. [2607:f8b0:400c:c05::232])
        by mx.google.com with ESMTPS id v185si2212380vka.46.2016.11.18.06.18.12
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 18 Nov 2016 06:18:12 -0800 (PST)
Received-SPF: pass (google.com: domain of mjklaim@gmail.com designates 2607:f8b0:400c:c05::232 as permitted sender) client-ip=2607:f8b0:400c:c05::232;
Original-Received: by mail-vk0-x232.google.com with SMTP id x186so168746771vkd.1
        for <std-proposals@isocpp.org>; Fri, 18 Nov 2016 06:18:12 -0800 (PST)
X-Received: by 10.31.192.8 with SMTP id q8mr5609923vkf.138.1479478691800; Fri,
 18 Nov 2016 06:18:11 -0800 (PST)
Original-Received: by 10.31.13.2 with HTTP; Fri, 18 Nov 2016 06:18:11 -0800 (PST)
In-Reply-To: <eb78d85f-058c-4e87-94a4-691d8ac41a71@isocpp.org>
X-Original-Sender: mjklaim@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of mjklaim@gmail.com
 designates 2607:f8b0:400c:c05::232 as permitted sender) smtp.mailfrom=mjklaim@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: <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:29463
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29463>

--001a1143a046e0ad96054193f9d4
Content-Type: text/plain; charset=UTF-8

The only issue is that it is a trick and not an explicit instruction that
normal humans
can understand when they read the code. :)

On 18 November 2016 at 14:09, <z.p.gaal@gmail.com> wrote:

> 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.
>

-- 
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/CAOU91OOjjyKjwS8VRLSAoZ3-iS8B57Yi8Jyz%3DfHqcXFepFLqDw%40mail.gmail.com.

--001a1143a046e0ad96054193f9d4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">The only issue is that it is a trick and not an explicit i=
nstruction that normal humans<div>can understand when they read the code. :=
)</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 1=
8 November 2016 at 14:09,  <span dir=3D"ltr">&lt;<a href=3D"mailto:z.p.gaal=
@gmail.com" target=3D"_blank">z.p.gaal@gmail.com</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex">using the array initializer trick it shall wo=
rk.<br>
<br>
int dummy[] =3D {([&amp;]{ std::cout&lt;&lt;aArgs;<br>
}(),0)...};<br>
<br>
(At least from msvc, not tested the others)<br>
<span class=3D""><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 <a href=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org">std-propo=
sals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br>
</span>To view this discussion on the web visit <a href=3D"https://groups.g=
oogle.com/a/isocpp.org/d/msgid/std-proposals/eb78d85f-058c-4e87-94a4-691d8a=
c41a71%40isocpp.org" rel=3D"noreferrer" target=3D"_blank">https://groups.go=
ogle.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/eb78d85f-058c-4e87-<w=
br>94a4-691d8ac41a71%40isocpp.org</a><wbr>.<br>
</blockquote></div><br></div>

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAOU91OOjjyKjwS8VRLSAoZ3-iS8B57Yi8Jyz=
%3DfHqcXFepFLqDw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAOU91OOjjyKjwS=
8VRLSAoZ3-iS8B57Yi8Jyz%3DfHqcXFepFLqDw%40mail.gmail.com</a>.<br />

--001a1143a046e0ad96054193f9d4--

.
