Boost logo

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, gregod at, cpdaniel at, john at