[variant] Why boost::get uses simple throw instead of BOOST_THROW_EXCEPTION

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... Adam Badura

On Fri, Jan 8, 2010 at 1:24 PM, Adam Badura <abadura@o2.pl> 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
participants (2)
-
Adam Badura
-
Emil Dotchevski