Boost logo

Boost :

Subject: Re: [boost] Boost and exceptions
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-06-19 16:10:38


On Tue, Jun 19, 2012 at 10:11 AM, Robert Ramey <ramey_at_[hidden]> wrote:

> b) boost::throw_exception should be rolled back to it's orginal meaning.
>
> Reason:The problem here is that using something from the main boost
> namespace creates
> and unexpected and hidden dependency on another library. This occcurs
> without the library
> user getting notified at all. Much care has been expended so that those
> things directly inside
> the boost namespace (excluding convenience headers) be things which DO NOT
> create
> dependencies on other libraries. The current definition of
> boost::throw_exception is the only
> exception to this.
>

It isn't an exception, there are many other libraries that use the main
boost namespace.

FYI boost::throw_exception is a documented part of Boost Exception:
www.boost.org/doc/libs/release/libs/exception/doc/throw_exception.html.

In terms of dependencies, boost/throw_exception.hpp is extremely light,
orders of magnitude lighter than boost/config.hpp, which is the low water
mark for Boost dependencies.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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