"Robbie Hatley" <lonewolfintj at pacbell dot net> wrote in message
news:40e78441$0$5859$ om...
> A few days ago, tom_usenet <> wrote
> in a message in this group, concerning ways of constructing
> objects:
>
> > > int main(void)
> > > {
> > > MyStruct Blat; // Zeros members; calls only one constructor
> > > }
> >
> > Yup, that's the best plan, but in generic code where you want
default
> > initialization but don't know the type, you should probably do:
> >
> > T t = T();
>
You can find a useful discussion and some references here:
http://www.boost.org/libs/utility/value_init.htm.
Jonathan