Boost logo

Boost :

From: elaine_y_at_[hidden]
Date: 2001-08-24 01:41:30


From conversions.cpp:
// NOTE: a heinous bug in MSVC6 causes exception objects re-thrown in
// this way to be double-destroyed. Thus, you must only use objects
that
// can tolerate double-destruction with that compiler.

So, I can throw a basic exception in my C++ class and get
"unknown exception" as the 'what'. It would be nice to have
a more specific message and to have specific exception
identification.

How can I create an error derived from runtime_error that can
tolerate double-destruction (is that what I need)? Will the
solution be portable to other compilers/platforms? Otherwise,
I know I can ifdef this part for MSVC6.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk