Subject: Re: [boost] Boost and exceptions
From: John Maddock (boost.regex_at_[hidden])
Date: 2012-06-23 10:22:32
>>> From what I can find in the list archives , Boost.FileSystem also had
>> similar issue with the requirement that thrown exceptions inherit from
>> std::exception. However, I'm not sure if  prompted the
>> hook or if it was resolved in some other way.
> All exceptions should inherit from std::exception. There is no need to
> involve the boost::exception type in your code to use throw_exception.
This works both ways - you can and should inherit from std::exception
whether you use BOOST_THROW_EXCEPTION or not, it's just that in the latter
case, they will also inherit from boost::exception (via multiple inheritance
if I understand the machinery correctly).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk