|
Boost : |
Subject: Re: [boost] [exception] library update
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-09-10 07:07:58
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, September 10, 2008 11:42 AM
Subject: Re: [boost] [exception] library update
>
> vicente.botet:
>
>> The previous documented semantics do not requires that the exception
>> parameter should be derived from std::exception
>
> They do, it just wasn't explicitly stated, and wasn't tested (which
> allowed one to throw enums by mistake).
>
> If 'e' doesn't derive from std::exception, the code won't compile when
> BOOST_NO_EXCEPTIONS is defined, and the original purpose of
> boost::throw_exceptions was precisely to support the case when
> BOOST_NO_EXCEPTIONS is defined.
So why to define a template in the case BOOST_NO_EXCEPTIONS is not defined?
______________________
Vicente Juan Botet Escribá
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk