title: function returning reference to a vector element
body: <p>I cannot figure out how to return a reference to a vector element. The [] and at() are returning reference, no?</p>
  <p>But when I try the following, it won't compile.</p>
  <p>I'm using Visual C++ and it gives  <em>cannot convert from 'const float' to 'float &amp;</em> error.</p>
  <pre><code>T&amp; GetElement(size_t x) const {
      return _vector.at(x);
  }
  </code></pre>
  <p>GetElement is a method, and _vector is a member variable.</p>