220 32559 <1678895.0nQhqNqFQE@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: relaxing rules for ternary operator. Allow
 incompatible types.
Date: Sun, 21 May 2017 10:16:59 -0700
Lines: 24
Approved: news@gmane.org
Message-ID: <1678895.0nQhqNqFQE@tjmaciei-mobl1>
References: <1b5ee8eb-53df-4e98-af2f-829c7bc2e5b2@isocpp.org> <99350a9e-0c6b-468d-9761-f2b2b052275e@isocpp.org> <27694795.c6R7qxKFE5@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1495387029 11910 195.159.176.226 (21 May 2017 17:17:09 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 21 May 2017 17:17:09 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBDUXQ7EQKGQECB4WE6I@isocpp.org Sun May 21 19:16:59 2017
Return-path: <std-proposals+bncBCB4TK757YBRBDUXQ7EQKGQECB4WE6I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f71.google.com ([74.125.83.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBDUXQ7EQKGQECB4WE6I@isocpp.org>)
	id 1dCUTT-0002ru-6Q
	for gclcip-std-proposals@m.gmane.org; Sun, 21 May 2017 19:16:59 +0200
Original-Received: by mail-pg0-f71.google.com with SMTP id o25sf102720979pgc.1
        for <gclcip-std-proposals@m.gmane.org>; Sun, 21 May 2017 10:17:04 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1495387023; cv=pass;
        d=google.com; s=arc-20160816;
        b=Q71YLkjUY6vAzOwQzkaquHdqoHAUSEei8ndbtKEkOadspZgj5zRHiOE/Mg0Lq3Snlk
         dec7i2a0AineHTS79K0VGgU83Fho1S3o14uZOPvfGlAvfJcxgTOvjdk1woH3EkB1jRGw
         X+iIdSxthNPxh7mgo6Pq1RT2Qi87fhtEYmciGAyqp8M9e2FGNoH/Y8f6EAmgJ4FFLKhS
         M39NGC5jVOrcy9REi/R6KBjFAg9x2epRoOTjAKOMlfAo8P59jxHOQXdz8RKMoBhN4k8Q
         XHIyqIeIwk/1qD5jmV23OMIJests3ioRZkEVFi7ur3CoDUO7q+N/BJJ4qjZoMKNlb1YE
         jCHA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=CZ8INBkVFRTER0VilCDNGnhV/LeZBibX3kgwvb1Fy+Q=;
        b=A9fC42gDSR9wCSwtMMkDHbmdIH0T0irlwsb6U7p4Oyf2F1UmNLHc87rX9zXJLGkodP
         u0ul0q9k8UK3u8Z5TCzYwjgyz4afuXdght4Mwdw7vY1cRVtHAxMfNfpDehAi/84PVE7r
         1uJ9PjPN9MwNCV5qL7tElnv0D4NSDuhztDB5GMxh5xw+pE0fbqpZV8OaRgxADVWBKmQI
         OOdXNW7PuV2hjJ8yY6+9HE90SZyQjoNN7+GB/g6a5rduYFN992hJkGDmocn8fogyCJuK
         a8uuYu6JWq1hHl78mPuFrtSBP+JRUb2A5awlSFo0UwFLifAxt/y8edB92HIi1rFYm+x5
         53lQ==
ARC-Authentication-Results: i=2; 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
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:in-reply-to:references:mime-version
         :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=CZ8INBkVFRTER0VilCDNGnhV/LeZBibX3kgwvb1Fy+Q=;
        b=DCCEHBf2z5QmvmdKu8GdVwyba3TpcobHJhZpL5/I5ApM4JyAkPbG9C8fe53mhSuR1m
         axstGcTjLFqnTLxux2NXXDm5pVgycq5wxdYsfN9RUQyQnI+YU7EIK7kZ3nx7QObSlSHC
         do/W/v/plC94UxxpQ9XE7GD0bcqQ71k/47B7QxU4b7pifrzqSXWgWa03g30ziW5eYi6P
         KfgJb671oeSLAopM6fWtcCh6LsvsdzVRunmJe4VLRPNpwMuryCASlrl6P5EW7kIdqSrk
         whVAd171LU7HYI0OkoTqArNNVradJs8PgPP+55EaqrZJGOFFLjOasOYIsy/UZyIe4E9+
         5cOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version: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=CZ8INBkVFRTER0VilCDNGnhV/LeZBibX3kgwvb1Fy+Q=;
        b=eh2cJts5ocppECqjeOoVYFfi2aN8H1Y1VY6gbjOuNRyDmUok/Xl1T8KxrL9Z16RRf/
         Hp/6znE8HD7lsBIQNntfL/2zVqwdfoTmNH4QaO7w2yUAVpa8gidqdDosX7szss6HbC80
         T3gk2+anFBKGf192eKiH9jjy0WOF8ks/Ez2I5VhKMpUrOPuEAI2aRLwka9ZxpDP9ac99
         sqXaaT4/GtBqqWShD4B7VCL4I0JCT7edsF7hRDPBE6h9y4DN/SBst0sw/o8IC4S/WfdD
         mW+WET1rdTo0xzAk0YyCRUwmeSG8bvLPq72ix2u+L+F9hQ0cnwNuRSoDYQfpaQMsPzow
         iXew==
X-Gm-Message-State: AODbwcCscZgaR2pSxCJzqiiCOaiglTBi1h2Jg8qa/eQZ1Y6ur9RsgdIB
	fV6xLcrjkzaGIMwo
X-Received: by 10.99.120.196 with SMTP id t187mr9128148pgc.73.1495387023297;
        Sun, 21 May 2017 10:17:03 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.37.76 with SMTP id j12ls2094793otd.27.gmail; Sun, 21 May
 2017 10:17:02 -0700 (PDT)
X-Received: by 10.55.157.74 with SMTP id g71mr18973817qke.92.1495387022467;
        Sun, 21 May 2017 10:17:02 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1495387022; cv=none;
        d=google.com; s=arc-20160816;
        b=Gizli1gK+NUvtHlPyqI4Z7oyHN9HU8MC51Rh6NtgkRcVZwaeUmCS0w3s4yClBOPEpG
         QnuHYnZd8TesOBtdDKWLtSmrH8YJ/PTS366crJ30XODzgMIQcruJ7dgNpxnLd7aOIrVf
         AGaia9uSEIjNigM6OXN6wSQcIQKn5pfTqWJsgbMe0GqOid4Wu2GdfFaPp5JQBCDDA8DL
         CcNRHoSCJCDHn5RxcmqwGihXt+P1EdP6Vlx1940DBPQU4xUJShKU2HPmGwlGREIGi/Z5
         LKSXYRwzsMK/0AuNoTGrYmTvSpUKM8OJRkZD16x4nir/X0vSgFwoI4bVz0tukU84Ap9f
         hcsQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=XJTn0Zl/U7GhReyB248StTl0J5QObdDsyV8y4eknLYM=;
        b=ZSZASz4Za9hh5n/yNSEvjPDx2Y2M1zvczRIxAGaxp2sTL3dhOlBALBnprXyEBt+BMK
         pKjL8tTN+w74rk9uAQdN+Du/wX0Kktjf9IelHtofXnGXapZSJRpyQK2FhH8tSyCuCUKt
         wwrANBkQQyjw/03Z/UkURm6V2lgBgiruO2iBwz3P7V6yDSGbbDzk0Z2TUXOse+th90W2
         CwP4thuTdSfGQ6rf8wlTe8uYcM/v9iBFP0e4xGiT9ju8d6kX2zYGY0gtdXjh+Gp57vUG
         a6gglviPVOxE2ODAnfjkrpZHLqcIDTYZPkCxoWXw4MW6lgIXjpIbS3AxJjQfgSW6Gkv4
         Qg9w==
ARC-Authentication-Results: i=1; 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
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id c9si15869157qkh.329.2017.05.21.10.17.02
        for <std-proposals@isocpp.org>;
        Sun, 21 May 2017 10:17:02 -0700 (PDT)
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-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:8466:3462:d05f:7085])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 2752B12C001
	for <std-proposals@isocpp.org>; Sun, 21 May 2017 10:17:01 -0700 (PDT)
In-Reply-To: <27694795.c6R7qxKFE5@tjmaciei-mobl1>
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-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:32559
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/32559>

On domingo, 21 de maio de 2017 10:08:16 PDT Thiago Macieira wrote:
> You do realise this grows exponentially, right?
> 
>         auto x = runtime_condition ? A{} : B{};
>         auto y = runtime_condition ? C{} : D{};
>         auto z = runtime_condition ? E{} : F{};

I mean different runtime conditions here.

>         x.f() + y.f() + z.f();
> 
> There are 8 different branches there to make the above work.


-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/1678895.0nQhqNqFQE%40tjmaciei-mobl1.

.
