This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: problems using vector in gcc3.2


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


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