STL vector with gcc 2.97 20001119

Benjamin Kosnik bkoz@redhat.com
Sat Nov 25 01:18:00 GMT 2000


You are making assumptions about the vector<T>::iterator == T*

This is no longer the case.

 vector<float> a(1,0);
 float *b = a.begin();

should be:

 vector<float> a(1,0);
 vector<float>::iterator b = a.begin();

Please post usage questions like this to the libstdc++ list, not gcc-bugs.

-benjamin


More information about the Gcc-bugs mailing list