Boost logo

Boost :

Subject: Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-03-25 00:18:13


At Thu, 24 Mar 2011 20:01:33 -0700,
Emil Dotchevski wrote:
>
> On Thu, Mar 24, 2011 at 6:04 PM, Dave Abrahams <dave_at_[hidden]> wrote:
> > At Thu, 24 Mar 2011 17:49:55 -0700,
> > Emil Dotchevski wrote:
> >
> >> Besides, even if the library remains useless in BOOST_NO_EXCEPTIONS
> >> builds, I wouldn't say that BOOST_THROW_EXCEPTION buys nothing.
> >
> > What does it buy in this case?
>
> - Enables transporting of exceptions between threads
>
> - Enables transporting of arbitrary data in exception objects
>
> - Enables boost::diagnostic_information to return a better message
> (double-clicking the message in Visual Studio and other editors' log
> window opens the throw location.)
>
> It seems unreasonable to consciously take these away from the user.

Point taken. +1 for just making it policy, then.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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