
30 Oct
2006
30 Oct
'06
10:22 a.m.
Hi, On 10/30/06, Anthony Williams <anthony_w.geo@yahoo.com> wrote:
Roland Schwarz <roland.schwarz@chello.at> writes: [snipped]
Do you mean: the object might be already zero initialized before the ctor runs? If yes: this is very dangerous to rely on!
No. This is required. The memory for an object with static-storage-duration MUST be zero initialized prior to the constructor running.
It dont even matter, it *must* not have a constructor. Or else there'll be a race condition on the compiler's flag and multiple constructor calls.
[snipped]
Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk
-- Felipe Magno de Almeida