From: "Marco Kögler" Date: 2002-10-09T22:39:52+09:00 Subject: Re: Compiling using IMPORT, NT=1 MikkelFJ wrote: > "Marco K�gler" wrote in message > news:3DA3E640.4090903@web.de... > >>#define eof _eof >> >>Now, the problem I have with this is, that my code uses the STL >>stringstream ... which coincidentally has an eof() member function. Now, >>I just went ahead and did something like this (without IMPORT and NT=1): > > That's why STL uses the std:: namespace. > > I recommend the practive of never have a using namespace std in the code. > Instead typedef the types you are using. For example: > > #include > typedef int_vector_t std::vector; Thank you very much for the lecture on how to use the STL, but you don't seem to understand the problem. When I type this: std::stringstream s(someString); while (!s.eof()) { } The preprocessor turns it into: std::stringstream s(someString); // note the underscore!! while (!s._eof()) { } No namespace will save you from that! -Marco