title: Can i push an array of int to a C++ vector?
body: <p>Is there any problem with my code ?</p>
  
  <pre><code>std::vector&lt;int[2]&gt; weights;
  int weight[2] = {1,2};
  weights.push_back(weight);
  </code></pre>
  
  <p>It can't be compiled, please help to explain why:</p>
  
  <pre><code>no matching function for call to ‘std::vector&lt;int [2], std::allocator&lt;int [2]&gt; &gt;::push_back(int*&amp;)’
  </code></pre>