Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2005-06-02 03:42:07


> "Neal Becker" <ndbecker2_at_[hidden]> wrote

> I still disagree. Depending on default initialization is like depending on
> init of static variables to 0. If you really need a special init value, be
> explicit and say so. I see no logic to the default construct of complex to
> have 0 value. The only logic to default construct values I can see is
> where there truly is a sensible default for a parameter.

A variable randomly initialised by the previous contents of the memory location
will give random results. Default initialisation automatically gives a known
repeatable value.

regards
Andy Little


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk