
7 Sep
2005
7 Sep
'05
4:10 p.m.
Anthony Williams wrote: [...]
Despite tendering a version that handles non-void returns, I am not sure how to do it right (destruction order for statics makes it hard), so I have left that out for now.
Why not simply make once_flag POD and provide call_once_reset()? Plus convenient (derived) non-POD class for dynamic context? regards, alexander.