Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2001-08-24 02:08:34
(beware of the line breaks)
shows how exceptions can be thrown in C++ with "what"
set. If you follow the example, you will see the "what"
text in Python, e.g.:
RuntimeError: Here is your message.
The example runs one many different platforms, including VC6.
I believe the double-destruction requirement applies to
(some of?) your objects that are destructed when the
stack is unwound.

--- In boost_at_y..., elaine_y_at_y... wrote:
> From conversions.cpp:
> // NOTE: a heinous bug in MSVC6 causes exception objects re-thrown
> // 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, gregod at, cpdaniel at, john at