Boost logo

Boost :

Subject: Re: [boost] [variant] Why boost::get uses simple throw instead of BOOST_THROW_EXCEPTION
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-01-08 19:43:58


On Fri, Jan 8, 2010 at 1:24 PM, Adam Badura <abadura_at_[hidden]> wrote:
>   Is there any reason for boost::get to use simple "throw" to throw bad_get
> rather then BOOST_THROW_EXCEPTION?
>   I thought BOOST_THROW_EXCEPTION is supposed to be used in all Boost
> libraries...

There is no such requirement. I would encourage you to post patches
that replace naked throws in Boost libraries you use with
BOOST_THROW_EXCEPTION. Among other things, this makes such libraries
compatible with BOOST_NO_EXCEPTIONS configuration macro.

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