title: Unresolved "size" in vector of vectors using operator[] in Eclipse CDT
body: <p>I am trying to use Eclipse CDT (just for the 'organize includes' functionality) on OS X for a C++ project.  The static analyzer (syntax highlighting) doesn't seem to be able to resolve the type of a template operator overload in container classes, such as std::vector and operator[].  Example:</p>
  
  <pre><code>#include &lt;vector&gt;
  
  int main() {
    std::vector&lt;std::vector&lt;int&gt; &gt; st = {{0}};
  
    st[0].size(); // Method 'size' could not be resolved
    st.front().size(); // no problem
  }
  </code></pre>
  
  <p>This code compiles in g++ and clang++.  I am not excited about turning off syntax highlighting completely (what's the point of the IDE?).  Any ideas on getting Eclipse CDT (specifically Neon.3 Release (4.6.3) on OS X) to understand this?</p>
  
  <p>EDIT: Updated with a simpler MWE, the problem was not related to using a struct.</p>
  
  <p>EDIT: Added Eclipse CDT version.</p>