title: Could not convert from ‘<brace-enclosed initializer list>’ to vector
body: <p>The following vector declaration:</p>
  <pre><code>vector&lt;string&gt; valid_escape = {'n', 't', 'r', '0', '\\'};  
  </code></pre>
  <p>Causes the error:</p>
  <blockquote>
  <p><code>error: could not convert ‘{'n', 't', 'r', '0', '\\'}’ from ‘&lt;brace-enclosed initializer list&gt;’ to ‘std::vector&lt;std::__cxx11::basic_string&lt;char&gt; &gt;’</code></p>
  </blockquote>
  <p>Other SO posts about this issue came to the conclusion that its a bug in 4.7 version of gcc or that an <code>-std=c++11</code> flag wasn't mentioned in compilation.</p>
  <p>My gcc version is 7.3.0 and I compiled with the above flag.</p>
  <p>Just out of curiosity and narrow hope I tried to replace <code>vector</code> with <code>list</code> and got a similar error.</p>