Problem inheriting from std::exception
Jason Merrill
jason@redhat.com
Sat Feb 24 01:44:00 GMT 2001
>>>>> "Denis" == Denis Vakatov <vakatov@ncbi.nlm.nih.gov> writes:
> I believe it's because of the way GCC delivers the exception (or at least
> used to deliver it yet several months ago).
> It actually delivers a *copy* of the original exception, and not the original.
>...
> Other compilers (like your Digital one) may (and often do) deliver
> exceptions in a different way, sometimes without making extra copy(es)
> of the original exception object...
The GCC semantics are mandated by the C++ standard; if Digital doesn't make
a copy, that's a bug.
Jason
More information about the Libstdc++
mailing list