
10 Nov
2006
10 Nov
'06
2:11 a.m.
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
Sounds good. It certainly makes sense to be consistent with TR2 Diagnostics Enhancements. Unless someone comes up with compelling reasons why renaming exception_info to error_info is a bad idea, I'll make the change this weekend. --Emil Dotchevski