|
Boost : |
From: Dirk Gerrits (dirkg_at_[hidden])
Date: 2002-06-20 11:08:22
Peter Dimov wrote:
> 3. Speaking of template<class F>, are there plans to extend boost::once to
> accept function objects?
>
> template<class F> void once(F f, once_flag & flag);
I believe this was not done because the F constructor could cause race
conditions. A function pointer doesn't have that problem.
Some one correct me if I'm wrong though.
Dirk Gerrits
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk