Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-23 17:52:07


"Jonathan Turkanis" <technews_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:uu0utmv5h.fsf_at_boost-consulting.com...
>> Jeff Holle <jeff.holle_at_[hidden]> writes:
>
>> No it is not. Even if you aren't throwing due to memory starvation,
>> you could run out of memory during unwinding, when the exception is
>> copied. That leads you directly to terminate(). Do not pass Go; do
>> not collect $200.
>
> So basically my advice is all wrong ?

?? I only said Jeff was wrong.

> If you have to embed strings, make sure all allocation takes place
> at the time of construction, and use reference counting?

Yes, that's right.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net