220 12068 <9E8291EE-CD67-4772-A364-0929FD18E295@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Variadic catch
Date: Fri, 25 Jul 2014 23:32:07 +0800
Lines: 17
Approved: news@gmane.org
Message-ID: <9E8291EE-CD67-4772-A364-0929FD18E295@gmail.com>
References: <d95d4f7c-7d8e-42de-bdb4-9f83bce67b50@isocpp.org> <53D270BF.5010906@gmx.de> <3f9efef6-04ec-47d7-807e-0d695bb2eba7@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1406302346 2888 80.91.229.3 (25 Jul 2014 15:32:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 25 Jul 2014 15:32:26 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRB77QZGPAKGQE3OXI4RA@isocpp.org Fri Jul 25 17:32:20 2014
Return-path: <std-proposals+bncBCW25A7E3QCRB77QZGPAKGQE3OXI4RA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f200.google.com ([209.85.223.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRB77QZGPAKGQE3OXI4RA@isocpp.org>)
	id 1XAhTk-0001Wl-Fb
	for gclcip-std-proposals@m.gmane.org; Fri, 25 Jul 2014 17:32:16 +0200
Original-Received: by mail-ie0-f200.google.com with SMTP id at20sf27945826iec.3
        for <gclcip-std-proposals@m.gmane.org>; Fri, 25 Jul 2014 08:32:15 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:subject:from:in-reply-to:date
         :message-id:references:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=FVIQz0DahXUuR+453XWWRIXV5KjsIyjRmbC18Gl4oUM=;
        b=OGffbYK0UZof9NyvDRVHW16zHhhYz/asN996fh8Q2M4ayGwwg3bnKpmYGWrIwW681T
         B1Jb2rWbUgKJvZroS81NjlBXpC/5qlHYBkQ9bfS7/mcO+ta0LYX3dm4RS55xwfbRa9fg
         IXiX74VOnHGtxgBE0sqKR2bcJXn1+wktIdcASz0UK1JwixBNPAAMUkmg8rmp3QSoeBzo
         Xxqzta56RdoI5+vYxPc1sGSACJKRiRlkhtEGLG51M5X0XqytWg/tVNusi5Rp17zDXrzR
         cT8MQ8PaDG1AwNw8ihhjhZaWM/wb6j9Nq4853sjblaCbBAwtoEKFEi5q9XHY1QLpl0Wy
         ciRQ==
X-Gm-Message-State: ALoCoQmcAMhIraJAAfb6i2Nw8kNlA96VWHipwJ16u7ElmCFgaOxklWyeFHwUm3bJ7gInSL6jsiiS
X-Received: by 10.42.177.5 with SMTP id bg5mr7998827icb.27.1406302335527;
        Fri, 25 Jul 2014 08:32:15 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.3.105 with SMTP id b9ls469298igb.20.canary; Fri, 25 Jul
 2014 08:32:14 -0700 (PDT)
X-Received: by 10.66.141.76 with SMTP id rm12mr4711954pab.138.1406302334763;
        Fri, 25 Jul 2014 08:32:14 -0700 (PDT)
Original-Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [2607:f8b0:400e:c03::229])
        by mx.google.com with ESMTPS id yt2si9560436pbb.3.2014.07.25.08.32.14
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 25 Jul 2014 08:32:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c03::229 as permitted sender) client-ip=2607:f8b0:400e:c03::229;
Original-Received: by mail-pa0-f41.google.com with SMTP id rd3so6278846pab.14
        for <std-proposals@isocpp.org>; Fri, 25 Jul 2014 08:32:14 -0700 (PDT)
X-Received: by 10.68.189.105 with SMTP id gh9mr19729786pbc.42.1406302334624;
        Fri, 25 Jul 2014 08:32:14 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.152])
        by mx.google.com with ESMTPSA id n2sm12124028pdo.32.2014.07.25.08.32.12
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 25 Jul 2014 08:32:14 -0700 (PDT)
In-Reply-To: <3f9efef6-04ec-47d7-807e-0d695bb2eba7@isocpp.org>
X-Mailer: Apple Mail (2.1878.6)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:400e:c03::229 as permitted
 sender) smtp.mail=potswa@gmail.com;       dkim=pass header.i=@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:12068
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/12068>

That's a rather different thing. Each catch block generically needs its own body. If the bodies are the same, that indicates you should actually be catching std::exception, dynamic_casting to determine compatibility, and perhaps rethrowing.

Any case where a single catch block is supposed to inspect either of two classes with no common base, you simply need to add that common base.


On 2014-07-25, at 11:26 PM, lorgonjortle@gmail.com wrote:

> I can implement sizeof...(Ts) entirely using constexpr function templates, does that mean it shouldn't be a language feature? 

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
