
Oliver.Kowalke@qimonda.com wrote:
throw my_exception() << throw_info<tag_errno>(errno) << throw_info<tag_function>(BOOST_CURRENT_FUNCTION);
<snip>
Any strong preferences?
What about upcoming boost::system::error_code and boost::system::system_error (used to report os errors)?
If I read you correctly, what you're saying is that if boost::exception is accepted, we need to think about integration with the rest of boost. For example, if boost::system::system_error derives from std::runtime_error (as it does now) and also from boost::exception, (someone correct me if I'm missing something) the definition of boost::system_error could be reduced to:
I would not introduce boost::exception stuff into boost::system.
throw enable_exception_info(system_error(....));
Maybe a better solution?! Oliver