Boost logo

Boost :

Subject: Re: [boost] Boost and exceptions
From: Daniel James (dnljms_at_[hidden])
Date: 2012-06-25 13:19:56


On 25 June 2012 17:43, Stewart, Robert <Robert.Stewart_at_[hidden]> wrote:
> Mathias Gaunard wrote:
>>
>> The whole point of the system is that there is a single place
>> where you enable Boost.Exception support for all libraries.
>
> The original point of boost::throw_exception() was to provide a fallback when exception support is not available.  That it now enables Boost.Exception support is the problem for some.

Everything's always a problem for someone. Maybe it should have been
opt-in rather than opt-out (for the user), but I don't think that
would be an appropriate change now.

>> If some libraries were allowed to stick to non-
>> Boost.Exception-enabled boost::throw_exception, then you
>> couldn't transfer those exceptions between threads.
>
> You could in C++11, but that's another matter.
>
> There is no Boost policy that requires Boost.Exception support.  If you think there should be, then lobby for it.  Until then, library authors and maintainers can choose to not support Boost.Exception

As with writing warning free code, it isn't a policy but it is desirable.

> yet their libraries should be supported when exceptions are not.

Supported by whom?


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