This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: STL vector with gcc 2.97 20001119
- To: gcc-bugs at gcc dot gnu dot org, valj01 at gel dot usherb dot ca
- Subject: Re: STL vector with gcc 2.97 20001119
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sat, 25 Nov 2000 01:18:08 -0800
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