Ah, but does it work on AIX? :-) Sorry, I couldn't resist. (My posts are getting ignored, so I assume nobody uses boost on AIX. Either that or I'm an impatient crybaby. Bummer!) On Aug 26, 2005, at 1:45 PM, Peter Dimov wrote:
Sohail Somani wrote:
Any dynamically allocated memory that isn't freed is a Bad
Thing imho.
Because?
Was it forgotten? Was it intentional? If the assumption is it will always be freed, then there is no ambiguity.
Seems clearly intentional to me - the allocation is invoked by call_once and is a textbook implementation of a thread safe singleton. A "this is not a leak" comment may help.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- The primary task of most software projects is to discover and resolve these unknowns rather than to build a system. -- Philip G. Armour -- Richard Cook ✇ Lawrence Livermore National Laboratory Bldg-453 Rm-4037, Mail Stop L-557 7000 East Avenue, Livermore, CA, 94550, USA ☎ (925) 423-9605 (925) 423-6961 --- Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept. (opinions expressed herein are mine and not those of LLNL)