Compilation errors (OpenCV/QT)

Just reinstalled QT and compiled all libs, but could not compile previous working version:
Initializing:

std::vector<std::vector<cv::Point> > test {{ {	52	,	2	}	, {	51	,	3	};


Errors:

C:\Users\66820\Documents\capture\main.cpp:16: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
 std::vector<std::vector<cv::Point> > test {{ { 52 , 2 } , { 51 , 3 } ,{ 50 , 3 } , { 49 , 3 } ,{ 48 , 3 } ,{ 47 , 3 } ,{ 46 , 3 } ,{ 45 , 3 } ,{ 44 , 3 } ,{ 43 , 3 } ,{ 42 , 3 } ,{ 41 , 3 } ,{ 40 , 4 } ,{ 39 , 4 } ,{ 38 , 4 } ,{ 37 , 4 } ,{ 36 , 4 } ,{ 35 , 4 } ,{ 34 , 4 } ,{ 33 , 4 } ,{ 32 , 5 } ,{ 31 , 5 } ,{ 30 , 6 } ,{ 29 , 6 } ,{ 28 , 6 } ,{ 27 , 7 } ,{ 26 , 7 } ,{ 25 , 7 } ,{ 24 , 8 }}};
------------
In c++98 must be initialized by constructor, not by '{...}'
how to fix these?


C:\Users\66820\Documents\capture\main.cpp:16: error: no matching function for call to 'std::vector<std::vector<cv::Point_<int> > >::vector(<brace-enclosed initializer list>)'

why do you think, there’s any connection to the error ?
what about reading the error msg:

extended initializer lists only available with -std=c++11 or -std=gnu++11

meaning, you need to pass one of those flags to your compiler, to make your code work.

also, just saying – qt is a (quite popular) gui library, just dont assume, the IDE / compiler toolchain it comes with is good at building other things

I think it might be related to gcc version or smth…
But as I told above, this code worked perfectly in previous compiler build.
What I’m I supposed to do to fix those?

add -std=c++11 to your compiler cmdline, like the error states

thanks! Light google search have not helped :D.
Any thoughts how to amend pro file in QT accordingly?
Berak, big thanks in advance