title: C++ std::vector.data not found by MinGW
body: <p>I have been able to use OpenGL's glVertexPointer function using the following C++ code:</p>
  
  <pre><code>glVertexPointer(3, GL_DOUBLE, 0, myMeasuredPoints.data());
  </code></pre>
  
  <p>myMeasuredPoints is a C++ vector with elements of type double. When compiling this code with Visual C++, there is no problem at all. However, when using MinGW to compile, I get the following error:</p>
  
  <pre><code>error: 'class std::vector&lt;double, std::allocator&lt;double&gt;' has no member named 'data'
  </code></pre>
  
  <p>Strangely, I do not get this error any other place in the code where I invoke functions such as myMeasuredPoints.push_back() to push values onto the vector. These other instances have all been before using the .data() function, so it hasn't simply been a case of the code crashing before reaching the other instances. </p>
  
  <p>Any thoughts?</p>