title: Non-aggregates cannot be initialized with initializer list
body: <pre><code>void Triangle::createShaders(Renderer&amp; renderer)
  {
      ifstream vsfile("triangleVertexShader.cso", ios::binary);
      ifstream psfile("trianglePixelShader.cso", ios::binary);
  
      vector&lt;char&gt; vsData = { istreambuf_iterator&lt;char&gt;(vsfile), istreambuf_iterator&lt;char&gt;() };
  }
  </code></pre>
  
  <p>Im getting the error C2552: 'vsData' : non-aggregates cannot be initialized with initializer list.</p>