Subject: Re: [boost] [exception] ostringstream like
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-08-16 10:41:41
On 16/08/10 16:21, Fabien Castan wrote:
> 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
> 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 ?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk