Using g++ 4.8.1 as compiler with -std=c++11 in the args for the compiler and linker, I used the following as the first line of main():
vector<double> data = {1, 2, 4};
This is as I understand valid syntax for c++11 but the compiler error tells me: means.cpp:36:34: error: in C++98 'data' must be initialized by constructor, not by '{...}'
vector<double> data = {1, 2, 4};
^
means.cpp:36:34: error: could not convert '{1, 2, 4}' from '<brace-enclosed initializer list>' to 'std::vector<double>'