On 14 Jun 2003 16:27:12 -0400, Francis Glassborow wrote: > In message , Terje Sletteb� > writes > >int i; > >stream >> i; > >Intialising "i" beforehand would just be vasteful. > Well yes, but any halfway competent programmer has a way to initialise a > variable from a stream, in my case I use my own template that allows me > to write: > int i(read(stream)); Let's see your template. My guess: template T read (istream& is) { T item; // uninitialized or default constructed is >> item; return item; } I'm guessing that you are just hiding the uninitialized fundamental or default constructing a udt. John [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ] [ about comp.lang.c++.moderated. First time posters: do this! ]