This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: more non-useless destructors desired
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: theonetruekenny at yahoo dot com, libstdc++ at gcc dot gnu dot org
- Date: Wed, 06 May 2009 11:04:34 +0200
- Subject: Re: more non-useless destructors desired
- References: <813521.54070.qm@web51505.mail.re2.yahoo.com> <49C526B4.1090607@oracle.com> <4A01112F.5090800@codesourcery.com>
Mark Mitchell wrote:
> Paolo Carlini wrote:
>
>> first blush, I believe this change could be doable, because the
>> destructors already exist and are exported by the library anyway, only
>> as "W" instead of "T". Did you experiment already with actually
>> declaring / defining such destructors in stdexcept / stdexcept.cc?
>>
> I agree that this should be a safe change, and a good optimization.
> Existing applications will have weak definitions, but that's OK -- they
> can be linked with a new library which provides strong definitions.
>
Thanks Mark for your feedback on that, I'm going to implement the change
for mainline.
Paolo.