title: Pushing vector<double> onto vector<vector<double>>
body: <p>So, I have this situation: </p>
  
  <pre><code>vector&lt;vector&lt;double&gt;&gt; myVector; 
  myVector.resize(somePreviousObject.size());
  for(int i = 0; i &lt; myVector.size(); i++)
  {
      vector&lt;double&gt; tempVector;
      //Do some stuff that fills tempVector, in a loop
      //After loop:
      myVector[i].push_back(tempVector);
  }
  </code></pre>
  
  <p>However, this produces a compile error, stating that:</p>
  
  <pre><code>no matching function for call to 'std:;vector&lt;double, std::allocator&lt;double &gt; &gt;::push_back(std::vector&lt;double, std::allocator&lt;double&gt; &gt;&amp;)'
  ...stl_vector.h:733 note: candidates are: void std::vector&lt;_Tp, _Alloc&gt;::push_back(const _Tp&amp;) [with _Tp = double, _Alloc = std::allocator&lt;double&gt;]
  </code></pre>
  
  <p>I realize that using a vector of vectors is not performance-friendly, but it still should compile and execute, correct?  Why doesn't it?</p>
  
  <p>Thanks for your help.</p>