Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-08-02 17:07:43


"Jason Hise" wrote:

>>http://www.boost.org/doc/html/call_once.html?
>>
> Why does it require that the function which is called once not be
> allowed to throw? I am not sure that I can meet this requirement, as I
> may need to dynamically allocate memory.
>
Possibly because of internal implementation.

If the function throws next time the call_once will
be executed again (likely a bug).

/Pavel


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