Boost logo

Boost :

Subject: Re: [boost] [exception] ostringstream like
From: Andy Venikov (avenikov_at_[hidden])
Date: 2010-08-23 12:05:47

David Abrahams wrote:
> At Sun, 15 Aug 2010 16:08:47 -0700,
> Emil Dotchevski wrote:
>>> If I keep careful control over my
>>> exception types---for example, if I only throw PODs---I can reasonably
>>> expect that "throw x;" throws x
>> You can reasonably expect that even for non-PODs. By the time you end
>> up getting a std::bad_alloc, I don't think it matters much whether it
>> is emitted from some operator new or from a throw (possibly
>> indirectly, from an exception object which allocates memory in its
>> consturctor)
> My point is that whether that matters to the application is not for
> you---the library author---to decide.

Sorry to be a little late to chime in, but this issue has been brought
up before.
Here's a thread to a discussion that Emil and my had back in May 2009


Boost list run by bdawes at, gregod at, cpdaniel at, john at