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]
Other format: [Raw text]

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


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