This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Problem inheriting from std::exception
- To: Denis Vakatov <vakatov at ncbi dot nlm dot nih dot gov>
- Subject: Re: Problem inheriting from std::exception
- From: Jason Merrill <jason at redhat dot com>
- Date: 24 Feb 2001 09:39:53 +0000
- Cc: rodrigc at mediaone dot net, libstdc++ at gcc dot gnu dot org
- References: <200102240628.BAA19483@peony.nlm.nih.gov>
>>>>> "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