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

Boost list run by bdawes at, gregod at, cpdaniel at, john at