220 32547 <f392812b-7d49-4074-9710-93f9fc4262d3@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: constexpr ternary (was: Re: relaxing rules for
 ternary operator. Allow incompatible types.)
Date: Sun, 21 May 2017 06:59:43 -0700 (PDT)
Lines: 65
Approved: news@gmane.org
Message-ID: <f392812b-7d49-4074-9710-93f9fc4262d3@isocpp.org>
References: <1b5ee8eb-53df-4e98-af2f-829c7bc2e5b2@isocpp.org>
 <9770742d-c5de-4a55-869f-ab71231cc775@isocpp.org> <9dbebffff1732ae5966a93b69a836757@kdab.com>
 <CAGsORuBi-W4ZjOiBbmPCErmkEVsa1zehi6fRfXr1EJ+=p6meyg@mail.gmail.com>
 <72a1eb41-3713-4602-84c0-e3fce2cadbd4@isocpp.org>
 <4752662e-21d2-4498-b236-a5dfb7cb2520@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2262_880569485.1495375183748"
X-Trace: blaine.gmane.org 1495375186 30486 195.159.176.226 (21 May 2017 13:59:46 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 21 May 2017 13:59:46 +0000 (UTC)
Cc: zy@miator.net
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBUF2Q3EQKGQELDZIG2Y@isocpp.org Sun May 21 15:59:41 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBBUF2Q3EQKGQELDZIG2Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f69.google.com ([209.85.218.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBUF2Q3EQKGQELDZIG2Y@isocpp.org>)
	id 1dCROV-0007lI-OE
	for gclcip-std-proposals@m.gmane.org; Sun, 21 May 2017 15:59:39 +0200
Original-Received: by mail-oi0-f69.google.com with SMTP id w138sf137110578oiw.0
        for <gclcip-std-proposals@m.gmane.org>; Sun, 21 May 2017 06:59:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc: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=wv/LC3c5D0xVjfP36jC2voPia/i7WbcBcNDXdzOJ0Dg=;
        b=d99qiY1d1+GIOE2kr3eV6ezlfwgCHXBBbvDyJ7Z/g4VfgFMHLgUwnuSqPTFIsNgPKK
         HlObMfl6IXKl/oPv5fKVH07J4n7ln9cP2V5waRLboSmFcA/KYT8ccfpspO6LqKPO/1QZ
         +poiS/8Xoc5DMGbTGQhkDmJqVLAM7A3OCpdi23wwpv64hMExIixz/3GfXjqsx3z8IhC8
         HkIoOEAcv81ir8Vy4rMSEiKtExhjvXhq6LG33SifWIR1jaI1WJP/Qq/aiqR7ucIAgW8G
         i2vgjljtnuWHg1wMO2VA83AV+73XGts7VZ7I5LQzaNbTKLhRktaAoCzbrQ4kFIy86Av6
         vTQQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:cc: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=wv/LC3c5D0xVjfP36jC2voPia/i7WbcBcNDXdzOJ0Dg=;
        b=IGumeNAI42I/2YoYK6Tt2bES0Mi5+CJ8TzjBMcnVSJ4gT031XOJZ9PEBuSSAs1jwSh
         zck0EUxuCfIPfBZGJF8uCpPcX4Yyo06hTyvBeOWKlX7G6iGU43Q7nw1wxVR+9N0nNT5o
         gvXnCHaE9ZrVLCXw0rAO/qWyZqq/vtndUj4EPcIimSTXt8Wmfg4Z4sIVTbk3+QBD1WTZ
         hrZlp/TTXdk4eqoEsHRV+5SHWmjfDmkskRfHn0HtnhHl6zM9wfx6T7OiWgRzHrm0gWzW
         wfLhploeDysF53SyWnzhefkinyF4FYc/Rw0IGIGUrpmVj5XY0gzEkg4YklR1PhPBTn0k
         LfQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:cc: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=wv/LC3c5D0xVjfP36jC2voPia/i7WbcBcNDXdzOJ0Dg=;
        b=N4FGoimJOYaBW0rBbLtQpCN5mgoPjsFQpGdDutpE7bt55FYusGRgCinUt9fmnCRUs+
         c3wKPnjvw/yUoca+AUsJug6jRMKvOCrLnFbHibhuYkSFLhiUbFtM0jJ1dpyVafMg8Drp
         sTi2xLU+9GGRsW2oNoSnw3lk/WQYFY8v2X0hnl4/UfZwi3a9eI3ju5/E4OJIbUDdU1x/
         v/vvpQ1sYLIbzxCP2I9DTPp+pJThe51xAsU4EzJPHpyBCXb3j0B4tjwlubh6vpyD2XRP
         lwJ78IawqYlLs0BWXCAoyeUUnfpOSsa0nfdiUNCSyDzH944nDSH6u5k4DoPCLzyJYvb4
         rCDQ==
X-Gm-Message-State: AODbwcBHByrul37ULd7A9M+Gq2NhQXBaUWMUknUX8/b9BROxDenh5XJX
	Z6xuHW78TUrPunqY
X-Received: by 10.157.51.36 with SMTP id f33mr9332214otc.14.1495375184964;
        Sun, 21 May 2017 06:59:44 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.82.29 with SMTP id e29ls1993688oth.7.gmail; Sun, 21 May
 2017 06:59:44 -0700 (PDT)
X-Received: by 10.157.33.109 with SMTP id l42mr388753otd.7.1495375184246;
        Sun, 21 May 2017 06:59:44 -0700 (PDT)
In-Reply-To: <4752662e-21d2-4498-b236-a5dfb7cb2520@isocpp.org>
X-Original-Sender: jmckesson@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:32547
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/32547>

------=_Part_2262_880569485.1495375183748
Content-Type: multipart/alternative; 
	boundary="----=_Part_2263_1401191829.1495375183748"

------=_Part_2263_1401191829.1495375183748
Content-Type: text/plain; charset="UTF-8"

On Saturday, May 20, 2017 at 10:54:38 PM UTC-4, Mingxin Wang wrote:
>
> If the condition is not "constexpr",  and the types are determined at 
> runtime, the "proxies" and the "wrappers" can be used to solve this 
> problem. (
> https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/kvkgsHM6wFQ
> )
>

So long as you're willing to suffer through needless virtual call overhead, 
as well as less obvious code, yes.

-- 
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/f392812b-7d49-4074-9710-93f9fc4262d3%40isocpp.org.

------=_Part_2263_1401191829.1495375183748
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Saturday, May 20, 2017 at 10:54:38 PM UTC-4, Mingxin Wa=
ng 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"><div=
></div><div>If the condition is not &quot;constexpr&quot;,=C2=A0=C2=A0and t=
he types are determined at runtime, the &quot;proxies&quot; and the &quot;w=
rappers&quot; can be used to solve this problem. (<a href=3D"https://groups=
..google.com/a/isocpp.org/forum/#!topic/std-proposals/kvkgsHM6wFQ" target=3D=
"_blank" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;https://groups.go=
ogle.com/a/isocpp.org/forum/#!topic/std-proposals/kvkgsHM6wFQ&#39;;return t=
rue;" onclick=3D"this.href=3D&#39;https://groups.google.com/a/isocpp.org/fo=
rum/#!topic/std-proposals/kvkgsHM6wFQ&#39;;return true;">https://groups.goo=
gle.com/a/<wbr>isocpp.org/forum/#!topic/std-<wbr>proposals/kvkgsHM6wFQ</a>)=
</div></div></blockquote><div><br>So long as you&#39;re willing to suffer t=
hrough needless virtual call overhead, as well as less obvious code, yes.<b=
r></div></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/f392812b-7d49-4074-9710-93f9fc4262d3%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/f392812b-7d49-4074-9710-93f9fc4262d3=
%40isocpp.org</a>.<br />

------=_Part_2263_1401191829.1495375183748--

------=_Part_2262_880569485.1495375183748--

.
