I'm studying the C++ programming language and I'm having some problem with my first vector. If i follow the example in the book (programming principles and practice using C++), this is the example :
vector<int> v = { 5, 7, 9, 4, 6, 8 };
and here what my compiler says : Errore 1 error C2440: 'initializing' : cannot convert from 'initializer-list' to 'Vector' c:\users\pierob\documents\visual studio 2013\projects\learnprogramming\learnprogramming\main.cpp 7 1 learnprogramming
can you help me please ? I have visual studio 2013 express (I use the visual C++ compiler november 2013 ctp).