Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-09-02 17:54:21


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. :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk