title: Brace Enclosed Initializer List? convert to vector
body: <p>so I have a piece of code that I am attempting to test. The code is checking that a few vectors (these are elements of structs) are equivalent to known vectors at certain points, however I am running into an issue. When I attempt to compare the vector to the known vector as follows, </p>
  
  <pre><code>assert((class1.getattr().getattr().getVec(key) == {4,3,2,2}))
  </code></pre>
  
  <p>I get the following error: </p>
  
  <pre><code>assertAll.cpp:105:82: error: could not convert ‘{4,3,2,2}’ from ‘&lt;brace-enclosed initializer list&gt;’ to ‘std::vector&lt;int&gt;’
  </code></pre>
  
  <p>the rest of the code is all correct, and the lval of the assert is definitely a vector as it should be. I am compiling with the flags, -std=c++11 -Wall -Wextra -pedantic -O in g++. Does anybody know how to fix this? Is there a way to typecast the bracket enclosed initializer list to a vector, or is there a better way to do this?</p>