Guest_imported
New member
- Jan 1, 1970
- 0
The following piece of code should compile:
using namespace std;
void test() {
list<int> l;
list<int>::iterator i;
i = l.begin();
while (i != l.end()) {
i++;
}
}
But it gives me the following errors:
error C2667: '!=' : none of 2 overload have a best conversion
error C2593: 'operator !=' is ambiguous
Is this some incompatibility between STL and Visual6?
How can it be solved?
Thanks in advance!
/Julien
using namespace std;
void test() {
list<int> l;
list<int>::iterator i;
i = l.begin();
while (i != l.end()) {
i++;
}
}
But it gives me the following errors:
error C2667: '!=' : none of 2 overload have a best conversion
error C2593: 'operator !=' is ambiguous
Is this some incompatibility between STL and Visual6?
How can it be solved?
Thanks in advance!
/Julien