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