I have been using the following vector initialization with values in Code::Blocks and MingW compiler:
vector v0 {1,2,3,4};
A
I have defined a macro :
#define init_vector(type, name, ...)\
const type _init_vector_##name[] { __VA_ARGS__ };\
vector name(_init_vector_##name, _init_vector_##name + _countof(_init_vector_##name))
and use like this :
init_vector(string, spell, "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" );
for(auto &a : spell)
std::cout<< a <<" ";