title: Segmentation fault while trying to access empty vector
body: <p>So I made a 2D array of chars but Every time I try to access it I get a segmentation fault and I cannot figure out why.</p>
  <pre><code>std::vector&lt;std::vector&lt;char&gt;&gt; matrix_;
  
  //Filling it with space ' ' characters
  std::vector&lt;char&gt; aRow;
  matrix_.resize(height_, aRow);
  for (std::vector&lt;char&gt; row : matrix_) {
      row.resize(width_, ' ');
  }
  
  std::cout &lt;&lt; matrix_[0][0]; //Segmentation fault here
  
  </code></pre>