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
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.
Reverge Studios, Inc.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk