This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Still improving! (Was: Re: [PATCH] Avoid strtok for threadsafety)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Myers <ncm-nospam at cantrip dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 29 Nov 2002 13:46:10 -0800
- Subject: Re: Still improving! (Was: Re: [PATCH] Avoid strtok for threadsafety)
The try/catch block would have to be around the whole constructor,
because they would all leak if an exception occurs in any part of it.
Or you could use an autoptr. (Well, not quite, since they don't work
with arrays, but you could use an autoptr-like class.)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com