This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems using vector in gcc3.2
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: david d <phrm at pisem dot net>
- Cc: gcchelp <gcc-help at gcc dot gnu dot org>
- Date: Sun, 13 Oct 2002 12:54:57 +0200
- Subject: Re: problems using vector in gcc3.2
- References: <200210131035.g9DAZFKP033121@www6.mailru.com>
- Reply-to: bjensen at fastmail dot fm
Hi David,
You are supposed to use a std::vector<int>::itterator
and not an int *. It looks like, itterators were implemented
as ordinary pointers in your old compiler, but not in
the new one. The code was accidentally correct with your
old compiler but not portable:)
Yours sincerely,
Bjorn