Boost logo

Boost :

Subject: Re: [boost] default value for a variable using template argument
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-11-14 18:51:20


Scott McMurray wrote:

> Overall, I'll stick with -Wuninitialized and
> such.

Non initializing memory is not necessarily bad.
Think of boost::optional, for example. It doesn't necessarily initialize
the memory, while it does initialize the value it represents.

So there are some types when it is important to force initialization and
there are some others where it is important not to force it.
This is typically the difference between non-PODs and PODs.


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