
14 Nov
2008
14 Nov
'08
10:19 p.m.
On Fri, Nov 14, 2008 at 13:04, Chris <indy271828@sympatico.ca> wrote:
Hi, did anyone ever suggest a template class which initializes a variable to a certain value? (see example) Is this too trivial? This is useful to prevent uninitialized values in objects.
It's an interesting idea, but it requires discipline in changing all the declarations and definitions, so I don't think there's any real gain since I could just use the discipline to add an initialization to the definition instead. Overall, I'll stick with -Wuninitialized and such. ~ Scott