This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstc++-v3 vector not convertible to pointer
- To: nbecker at fred dot net
- Subject: Re: libstc++-v3 vector not convertible to pointer
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Nov 2000 11:56:01 -0200
- Cc: gcc at gcc dot gnu dot org, oon-list at oonumerics dot org
- Organization: GCC Team, Red Hat
- References: <x88u28peg2p.fsf@adglinux1.hns.com>
On Nov 30, 2000, nbecker@fred.net wrote:
> I see that in libstdc++-v3 (current cvs) a vector::iterator is no
> longer compatible with a pointer.
And, in fact, it shouldn't be.
> reinterpret_cast<fftw_real*>(in.begin())
Try `& * in.begin()'. IIRC, vectors have to be contiguous, even
though the Standard doesn't explicitly state that.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me