220 29392 <CAKO7S=KBacA_3p3z-payS4df2xe3HoYNekqg0wu0fXSjzwsTOw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Shi Yan <billconan@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: why not formally support meta programming.
Date: Wed, 9 Nov 2016 17:32:24 -0800
Lines: 71
Approved: news@gmane.org
Message-ID: <CAKO7S=KBacA_3p3z-payS4df2xe3HoYNekqg0wu0fXSjzwsTOw@mail.gmail.com>
References: <668e0a04-c988-4354-ae32-30f626f75403@isocpp.org>
 <CAOqAUTiRxwtmzM-_tSyTUKbyiJhivCbVmUgQ749ByD=h-SAF4A@mail.gmail.com>
 <CAKO7S=JZi-v=EZiXFmUZnkMxARbVK5EJ6wmnC3NkqT_oSEQjOQ@mail.gmail.com>
 <f2877a3a-dd59-4a52-ab25-6458b9de3128@isocpp.org> <7d99e4bd-5ae1-4615-96dd-c8849487c007@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11418c708825f00540e85845
X-Trace: blaine.gmane.org 1478741550 3917 195.159.176.226 (10 Nov 2016 01:32:30 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 10 Nov 2016 01:32:30 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD7JLV7X6MLRBKU4R7AQKGQEPHRJ7QI@isocpp.org Thu Nov 10 02:32:26 2016
Return-path: <std-proposals+bncBD7JLV7X6MLRBKU4R7AQKGQEPHRJ7QI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f70.google.com ([74.125.82.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD7JLV7X6MLRBKU4R7AQKGQEPHRJ7QI@isocpp.org>)
	id 1c4eE3-00007g-Nh
	for gclcip-std-proposals@m.gmane.org; Thu, 10 Nov 2016 02:32:23 +0100
Original-Received: by mail-wm0-f70.google.com with SMTP id i131sf666819wmf.3
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Nov 2016 17:32:27 -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=1eBsupAESLnMmO7GyIYs73/Vika/AxMfFfwij9Ddnzw=;
        b=QRG1jFdMII4936eTkdmiiqmcBFPl3Kwom0naPzpt6fdrMcyp5D2jnDgQAkbe9bdDFQ
         /q6By60UfHBER1BzNpyqEUWU8oJVE41bE4V5Q5p7TYa3mhFBWmdj/p90zs6m6BcXvISV
         dmiux7AZgoqlGZWM0WU7/D+gb8n4WvRLnqgw7IIPcViaD9CRC8EPPT1xIcS+Y2XVbz6x
         ij84DRAGOtFtt+mMN7M5XI98uWKTuyzOyPHJQjywQwJk7LFOFgQ+7tSC5ckOmuwaP2gO
         WkEp15qLw8y2wvYtVBcWHu+RBMUfoDd9qzLxZyaK9o76dYSP+aSeiHnkW0nS3UvuHuvr
         5piQ==
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=1eBsupAESLnMmO7GyIYs73/Vika/AxMfFfwij9Ddnzw=;
        b=jPUIqLf0laE1f4HZXnXKjlJDDlDP5x3i/MZiUNe0IJ2zEWYxExKd4ostmaIWf+1+VI
         S0S1pGARixAgeFFV9ojGv9HTNCrfOAFegGlD7nE5oGpDnr0SPOCg6cSyKz0Yft6iMFDm
         9mfRO5ysIASOSeFsf4fZunH0rwd9xVhz+HNSSkhk0KGrePy9KjXggDtB+nKq3BSIt7g4
         ID0zEg78CZ4ZZrguIxDZe05FgngHXYJ8Z97oklFGI2dY76qRJzAijF2hPZY1SEvWQjiT
         RoqYJmDQs183bjgItaBjrmjFuy2/QwfpSssOdTpItm6CPiQPez0FpbSt4YKSm3WovErG
         9Fzw==
X-Gm-Message-State: ABUngve9lzhDoKkxLq7ORNca87khwQtLBUEnTrs3aHK/OF8qiqiNXtPhZFno47+AaQzYjw==
X-Received: by 10.28.154.213 with SMTP id c204mr490991wme.22.1478741547036;
        Wed, 09 Nov 2016 17:32:27 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.52.83 with SMTP id b80ls3789588wma.2.gmail; Wed, 09 Nov
 2016 17:32:25 -0800 (PST)
X-Received: by 10.194.189.83 with SMTP id gg19mr2002500wjc.165.1478741545900;
        Wed, 09 Nov 2016 17:32:25 -0800 (PST)
Original-Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com. [2a00:1450:400c:c09::241])
        by mx.google.com with ESMTPS id qp4si2555593wjb.30.2016.11.09.17.32.25
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 09 Nov 2016 17:32:25 -0800 (PST)
Received-SPF: pass (google.com: domain of billconan@gmail.com designates 2a00:1450:400c:c09::241 as permitted sender) client-ip=2a00:1450:400c:c09::241;
Original-Received: by mail-wm0-x241.google.com with SMTP id c17so200853wmc.3
        for <std-proposals@isocpp.org>; Wed, 09 Nov 2016 17:32:25 -0800 (PST)
X-Received: by 10.28.125.3 with SMTP id y3mr3412827wmc.30.1478741545459; Wed,
 09 Nov 2016 17:32:25 -0800 (PST)
Original-Received: by 10.28.72.193 with HTTP; Wed, 9 Nov 2016 17:32:24 -0800 (PST)
In-Reply-To: <7d99e4bd-5ae1-4615-96dd-c8849487c007@isocpp.org>
X-Original-Sender: billconan@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 billconan@gmail.com designates 2a00:1450:400c:c09::241 as permitted sender)
 smtp.mailfrom=billconan@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:29392
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29392>

--001a11418c708825f00540e85845
Content-Type: text/plain; charset=UTF-8

I have tested on this page http://melpon.org/wandbox

that this feature is available with gcc 7 and clang 4.

I couldn't find how to obtain gcc 7 source code.

I will see if I could build clang 4

On Wed, Nov 9, 2016 at 5:11 PM, <billconan@gmail.com> wrote:

> Thank you, this is indeed a cleaner solution.
>
> but is if constexpr available with any compiler today? event prerelease
> compiler, I'd like to try.
>
> On Wednesday, November 9, 2016 at 4:45:17 PM UTC-8, Nicol Bolas wrote:
>>
>> A combination of `if constexpr` and template specialization can handle
>> what you're doing:
>>
>>

-- 
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/CAKO7S%3DKBacA_3p3z-payS4df2xe3HoYNekqg0wu0fXSjzwsTOw%40mail.gmail.com.

--001a11418c708825f00540e85845
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I have tested on this page=C2=A0<a href=3D"http://melpon.o=
rg/wandbox">http://melpon.org/wandbox</a><div><br></div><div>that this feat=
ure is available with gcc 7 and clang 4.</div><div><br></div><div>I couldn&=
#39;t find how to obtain gcc 7 source code.</div><div><br></div><div>I will=
 see if I could build clang 4</div></div><div class=3D"gmail_extra"><br><di=
v class=3D"gmail_quote">On Wed, Nov 9, 2016 at 5:11 PM,  <span dir=3D"ltr">=
&lt;<a href=3D"mailto:billconan@gmail.com" target=3D"_blank">billconan@gmai=
l.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"l=
tr">Thank you, this is indeed a cleaner solution.<div><br></div><div>but is=
 if constexpr available with any compiler today? event prerelease compiler,=
 I&#39;d like to try.<span class=3D""><br><br>On Wednesday, November 9, 201=
6 at 4:45:17 PM UTC-8, Nicol Bolas wrote:<blockquote class=3D"gmail_quote" =
style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left=
:1ex"><div dir=3D"ltr">A combination of `if constexpr` and template special=
ization can handle what you&#39;re doing:<br><div><br></div></div></blockqu=
ote></span></div></div></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/CAKO7S%3DKBacA_3p3z-payS4df2xe3HoYNek=
qg0wu0fXSjzwsTOw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAKO7S%3DKBacA_=
3p3z-payS4df2xe3HoYNekqg0wu0fXSjzwsTOw%40mail.gmail.com</a>.<br />

--001a11418c708825f00540e85845--

.
