
Emil, how about another choice (which is more consistent with TR2 Diagnostics Enhancements) : error_info throw my_exception() << error_info<tag_errno>(errno) << error_info<tag_function>(BOOST_CURRENT_FUNCTION); catch( boost::exception & x ) { x << error_info<tag_filename>(fn); throw; } Minh ----- Original Message ----- From: "Emil Dotchevski" <emildotchevski@hotmail.com> To: <boost@lists.boost.org> Sent: Wednesday, November 08, 2006 6:57 AM Subject: [boost] Exception lib proposal: renaming boost::exception_info snip
except_info throw_info
Here is an example of how they would look in code:
throw my_exception() << except_info<tag_errno>(errno) << except_info<tag_function>(BOOST_CURRENT_FUNCTION);
-or-
throw my_exception() << throw_info<tag_errno>(errno) << throw_info<tag_function>(BOOST_CURRENT_FUNCTION);
snip
catch( boost::exception & x ) { x << except_info<tag_filename>(fn); throw; }
-or-
catch( boost::exception & x ) { x << throw_info<tag_filename>(fn); throw; }
Any strong preferences?
Thanks, Emil Dotchevski
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Send instant messages to your online friends http://au.messenger.yahoo.com