
14 Nov
2008
14 Nov
'08
11:51 p.m.
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.