Boost logo

Boost :

Subject: Re: [boost] Boost and exceptions
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-06-23 17:48:18


AMDG

On 06/23/2012 03:29 PM, Robert Ramey wrote:
> Emil Dotchevski wrote:
>> There were a few examples of libraries emitting exceptions that did
>> not derive from std::exception in violation of a
>> boost::throw_exception requirement.
>
> The original boost::throw_exception or the current one?

The requirement was always present implicitly.
When exceptions are disabled, the signature is

void throw_exception(const std::exception&);

which is obviously not going going to work
if the exception doesn't derive from std::exception.

In Christ,
Steven Watanabe


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