Boost logo

Boost :

Subject: Re: [boost] Policy proposal: All user-visible exceptions should be thrown through BOOST_THROW_EXCEPTION [was RE: Boost and exceptions]
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-06-25 21:12:39


On Mon, Jun 25, 2012 at 4:56 PM, Jeffrey Lee Hellrung, Jr. <
jeffrey.hellrung_at_[hidden]> wrote:

> On Mon, Jun 25, 2012 at 4:49 PM, Emil Dotchevski> boost::exception stores
> the BOOST_THROW_EXCEPTION information in a custom,
> > more efficient way than other data. The only overhead is the potential
> > bloat from BOOST_CURRENT_FUNCTION, which now can be controlled (see
> ticket
> > #6450.)
> >
> > At least in my experience BOOST_THROW_EXCEPTION is very helpful in
> > combination with boost::diagnostic_information. In my development
> > environment, I can double-click the message to go to the location of the
> > throw, which makes it easy to set a break point and run again to see the
> > context in which the unexpected exception happens.
>
> Hmmm...should these details be added to the BOOST_THROW_EXCEPTION
> documentation? It's not at all clear from the documentation what overhead
> BOOST_THROW_EXCEPTION brings relative to simply boost::throw_exception.
>

Yes, good idea. I'll add this info in the documentation.

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