This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: STL vector with gcc 2.97 20001119



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]