title: c++ vector initialization
body: <p>I have been using the following vector initialization with values in Code::Blocks and MingW compiler:    </p>
  
  <pre><code>vector&lt;int&gt; v0 {1,2,3,4};
  </code></pre>
  
  <p>After that I had to move the code to a visual studio project (c++) and I tried to build. I got the following error:<br>
  <em>local function definitions are illegal</em>  </p>
  
  <p>Visual Studio compiler does not support this kind of initialization?<br>
  How do I need to change the code to make it compatible?<br>
  I want to initialize vector and fill it with values at the same time, just like an array.</p>