20 Feb
2016
20 Feb
'16
10:44 a.m.
2016-02-19 22:10 GMT+01:00 Emil Dotchevski
boost::exception_ptr requires that the exception is thrown using enable_current_exception, see www.boost.org/doc/libs/release/libs/exception/doc/enable_current_exception.html. I recommend to throw the exception using BOOST_THROW_EXCEPTION, which internally uses enable_current_exception.
the code looks like this boost::exception_ptr except_; ... if ( except_) boost::rethrow_exception( except_);