'list' was not declared in this scope

Hi.

I think this error is likely for something really obvious, but I've done my research, and I can't find a concrete reason, I'm including the appropriate headers, here's what I've got:

1
2
3
4
5
6
7
8
#include <iostream>
#include <vector>
#include <deque>
#include <list>

int main() {
	list < deque<int> > mylist;
}


The error this generates is the one stated in the subject for this question:
'list' was not declared in this scope and
'deque' was not declared in this scope

Why is that ?
Can somebody help me ?

Jose
std::list
All standard library symbols are located in the std namespace
Oh Christ, I was about to type it that way, But I never it'd necessary at that level !

Thank you Bazzy !
Topic archived. No new replies allowed.