
Create an error sentence with some values inside is not really an advanced string manipulation. You can have 2 kinds of errors: bug inside a custom operator<< or a memory problem. There is no particular reason to not have sufficient memory to create an error sentence when throwing something like a logic_error. You can't know as you're in an exceptionnal case already so anything's
On 16/08/10 16:21, Fabien Castan wrote: possible
The problem is not really the kind of exception, but an easy way to create message with boost exception tag system. This has nothign to do with exception. Nothign prevent you to make your own build_message(Exception const& e) that does this using boost::diagnostics_info or what not. This little class only remap operator+ call to operator<< on an internal ostringstream. What if you work on a platform with exception handlign but no usable ostream implementation ?