This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem inheriting from std::exception


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]