From: Norman V. <nh...@ca...> - 2003-08-10 12:25:51
|
Razmig K writes: >=20 > The following code segment - which is %100 compliant with the ISO C++ = standard - won't compile on the most recent version=20 > of g++ 3.2.3, that's also included in MinGW's most recent release = package 3.0.0. > Of course, the code is very much 'downsized' to reveal the actual = problem, so that it's trivial in this form. >=20 > //flaw.cpp > #include <iostream> > #include <string> >=20 > int main () > { > std::istream_iterator<std::string> ii ( std::cin ) ; > } >=20 Hmm ..... #include <iostream> #include <iterator> #include <string> int main () { std::istream_iterator<std::string> ii ( std::cin ) ; } $ gcc --version gcc.exe (GCC) 3.3.1 (mingw special 20030804-1) Norman |