Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-10-30 05:22:45


On 10/30/06, Anthony Williams <anthony_w.geo_at_[hidden]> wrote:
> Roland Schwarz <roland.schwarz_at_[hidden]> 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

Felipe Magno de Almeida

Boost list run by bdawes at, gregod at, cpdaniel at, john at