
2 Sep
2005
2 Sep
'05
10:54 p.m.
Greer, Joe wrote:
Yes, but it could have been a class static as easily and have the same performance.
There is no guarantee that the class static initialization precedes the first call to call_once. Typically one would use call_once in such a scenario to manage the initialization, as this is one of its primary uses. Not possible in this case for obvious reasons. :-)