
19 Jul
2012
19 Jul
'12
6:17 p.m.
On 19/07/2012 10:56 a.m., Alexander Mingalev wrote:
catch (const std::exception& e) { throw boost::enable_error_info(e) << Tag1(1); }
I believe that should be catch(boost::exception& e) { e << Tag1(1); throw; // rethrow original exception } so to preserve the original exception being thrown. You are currently throwing a new exception copied from std::exception e. Agustín K-ballo Bergé.- http://fusionfenix.com