title: Vector 'no operator "[]" matches these operands' error in Visual Studio watch
body: <p>When stepping through the following sample code in Visual Studio 2012:</p>
  
  <pre><code>std::vector&lt;int&gt; test;
  test.resize(1);
  test[0] = 4;
  </code></pre>
  
  <p>I can set a watch on test and inspect its 0th element.  However, if I set a watch on test[0], I get the error 'no operator "[]" matches these operands':</p>
  
  <p><img src="https://i.stack.imgur.com/IJHsW.png" alt="enter image description here"></p>
  
  <p>How can I inspect the value of test[0] directly?</p>