Problems using the STL list template
Hello all,
I'm trying to use the STL list template class in some code of mine and I get weird errors, or at least they look weird to me. I'm properly including the list header at the beginning of my file (#include <list>) and when I try to declare a list with "std::list<mytype> mylist;" the compiler is telling me that list isn't in the std namespace.
I am using Visual C++ 7.0. Am I doing something stupid or is this a known bug?
Thanks in advance,
Maxime
Re: Problems using the STL list template
Quote:
Originally posted by mux
with "std::list<mytype> mylist;" the compiler is telling me that list isn't in the std namespace.
Did you forget to put:
Code:
using namespace std;
At the beginning of the header where you declare your STL based objects (vector/list/whatever..)?
Sid