Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-06-01 14:24:38


Rob Stewart wrote:

> From: Neal Becker <ndbecker2_at_[hidden]>
>>
>> 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
>
> What's wrong with relying on static initialization to get you a
> zero?
>

Explicit is better than implicit. Have sympathy for those that must read
the code. If you require something to be initialized, say so. Don't leave
it to the reader to guess whether it had to be initialized to zero, or just
was by accident.


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