23 Aug
2004
23 Aug
'04
9:48 p.m.
"David Abrahams"
Jeff Holle
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 ? If you have to embed strings, make sure all allocation takes place at the time of construction, and use reference counting? Jonathan