constexpr

Im getting the error: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11. Can anyone help me on this one?


1
2
3
4
5
6
7
8
9
10
11
12
13
14
constexpr auto CORRIDOR_LENGTH = 4050;
constexpr auto RACK_WIDTH = 120;
constexpr auto CORRIDOR_NORMAL_WIDTH = 350;


Encomenda::Encomenda(int Key1, std::string Data1, std::vector<int> Artigos1, int CODLocalAM1, std::string Cais1)
{
	Key = Key1;
	Data = Data1;
	Artigos = Artigos1;
	CODLocalAM = CODLocalAM1;
	Cais = Cais1;

}
Message says:
The C++11 features are supported by your compiler only if you do give command line option -std=c++11 to the compiler.

We don't know how you do compile and thus cannot tell how to do that.
Last edited on
thanks
Topic archived. No new replies allowed.