problem with c++0x

Hello,

I am using Eclipse as my editor and trying to work with boost.
Here is my code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <boost/mpl/for_each.hpp>
#include <boost/mpl/range_c.hpp>
#include <boost/mpl/transform.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/fusion/algorithm.hpp>
#include <boost/fusion/container/vector.hpp>
#include <boost/fusion/mpl.hpp>
#include <boost/fusion/sequence.hpp>
#include <boost/mpl/for_each.hpp>
#include <typeinfo>
#include <array>
#include <vector>
#include <iostream>

namespace bmpl = boost::mpl;
//using namespace std;

// list all array types

typedef bmpl::vector<
            std::array<int, 2>,
            std::array<int, 4>,
            std::array<int, 6>,
            std::array<int, 8>,
            std::array<int, 10>,
            std::array<int, 12>,
            std::array<int, 14>,
            std::array<int, 16>,
            std::array<int, 18>
                > array_collection;



int main() {
	std::vector<std::vector <int> > v0;
	v0.resize(3 , std::vector<int> (4, 1));
	v0[0][3] = 2;

	std::array<int, 3> v1;
	v1[0] =0;

	return 0;
}



While it compiles with no error, the editor gives me some bugs:
At line 20: Symbol 'vector' could not be resolved
At lines 21-29: Symbol 'array' could not be resolved
At lines 39: Symbol 'vector' could not be resolved

Any suggestion as what goes wrong?
May be Eclipse is not configured correctly?

Thanks!
Topic archived. No new replies allowed.