|
Boost : |
From: Andrew J Bromage (ajb_at_[hidden])
Date: 2002-08-06 02:00:05
G'day all.
Boost currently provides this:
void call_once(void (*func)(), once_flag&);
Is there any interest in something like this?
void call_once(function0<void>& func, once_flag&);
Obviously once_flag isn't appropriate for this, so I envisage something
more like this:
class once : private noncopyable {
public:
once();
~once();
void call_once(function0<void>& func);
};
Cheers,
Andrew Bromage
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk