Re: string.h included in iostream

2006-10-18 Thread r.gmail
Larry Smith ha scritto: > r.gmail wrote: > > Hi all, > > when I try to compile the following simple code: > > > > #include > > > > int main () { > > > > if (index > 0) { > > std::cout << "Here" << std::endl; > > } > > > > return 0; > > } > > > > using g++ 3.3.5 (Debian 1:3.3.5-13) ve

Re: string.h included in iostream

2006-10-16 Thread Larry Smith
r.gmail wrote: > Hi all, > when I try to compile the following simple code: > > #include > > int main () { > > if (index > 0) { > std::cout << "Here" << std::endl; > } > > return 0; > } > > using g++ 3.3.5 (Debian 1:3.3.5-13) version and also g++ version 4.1.1 > (Fedora core 5),

Re: string.h included in iostream

2006-10-16 Thread Jens Theisen
red floyd <[EMAIL PROTECTED]> writes: > > My question is is it a standard behavior ? Should string.h be > > included in iostream ? > > > > I believe that's implementation dependent. Your code, as posted, is > ill-formed (index is undefined). As far as I can see, ISO/IEC > 14882:2003 provides

Re: string.h included in iostream

2006-10-16 Thread red floyd
r.gmail wrote: Hi all, when I try to compile the following simple code: #include int main () { if (index > 0) { std::cout << "Here" << std::endl; } return 0; } using g++ 3.3.5 (Debian 1:3.3.5-13) version and also g++ version 4.1.1 (Fedora core 5), I don't have any warnings or e

string.h included in iostream

2006-10-16 Thread r.gmail
Hi all, when I try to compile the following simple code: #include int main () { if (index > 0) { std::cout << "Here" << std::endl; } return 0; } using g++ 3.3.5 (Debian 1:3.3.5-13) version and also g++ version 4.1.1 (Fedora core 5), I don't have any warnings or errors during the