$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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?