Boost logo

Boost :

Subject: Re: [boost] Boost and exceptions
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-06-24 19:21:12


on Sun Jun 24 2012, Emil Dotchevski <emildotchevski-AT-gmail.com> wrote:

> On Sun, Jun 24, 2012 at 7:13 AM, Dave Abrahams <dave_at_[hidden]> wrote:
>
>>
>> on Sun Jun 24 2012, Emil Dotchevski <emildotchevski-AT-gmail.com> wrote:
>>
>> > On Sat, Jun 23, 2012 at 6:50 PM, Dave Abrahams <dave_at_[hidden]>
>> wrote:
>> >
>> >> The the more you pick at Emil's design and the more I check your
>> >> arguments, the more impressed I am with the care he took. I may be
>> >> misunderstanding, but IIUC, the "problem" that he "fixed" was that his
>> >> change caused already-unsupported misuses of boost::throw_exception to
>> >> stop compiling. It's arguable that those misuses *should* be flagged
>> >> with compiler errors.
>> >>
>> >
>> > No, those were good compiler errors.
>>
>> I don't know what you mean by "good" here.
>>
>
> I mean the compile error that the current boost::throw_exception induces if
> the type of the passed object doesn't derive from std::exception is good,
> even though it "broke" non-conforming libraries.

I think you're agreeing with me, then, despite the fact that you started
with "No..."

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk