
6 Oct
2006
6 Oct
'06
11:56 a.m.
Roland Schwarz wrote:
3) class_once also in my current implementation has a problem with exceptions, thrown by ctors. once_call as I found out shouldnt throw (from a comment of Bill Kempf). I am considering calling terminate in this case. Reasonable?
No. An exception thrown by the once function needs to be propagated outwards as-is, with the once flag unchanged.