Static variables in template functions

Mark Mitchell mark@codesourcery.com
Tue Apr 19 22:34:00 GMT 2005


Kai Henningsen wrote:

> Surely if a program can tell the difference will depend on any side  
> effects outside the function the initializer has. 

If the initializer has side-effects, then we do not do a static 
initialization on any platform.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Libstdc++ mailing list