Boost logo

Boost :

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


Alexander Terekhov wrote:
> Peter Dimov wrote:

>> On second thought, a non-void return doesn't make sense; what could
>> it return when call_once is called a second time?
>
> The same thing as the first time.

Things like auto_ptr aside, you'd need to templatize the once_flag on the
return type then, since the first time value needs to be stored somewhere.
Is this worth the hassle?


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