pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More (Windows) Errors


From: Neil Hotmail
Subject: More (Windows) Errors
Date: Wed, 16 Oct 2002 14:25:26 +0100

src\worldmap\path.hxx:
vec.insert(vec.end(), p.vec.rbegin(), p.vec.rend());

D:\Pingus\CVS\Games\Pingus\src\worldmap\path.hxx(77) : error C2664: 'void
__thiscall std::vector<class Vector,class std::allocator<class Vector>
>::insert(class Vector *,unsigned int,const class Vector &)' : cannot
convert parameter 2 from 'class st
d::reverse_iterator<class Vector *,class Vector,class Vector &,class Vector
*,int>' to 'unsigned int'
        No user-defined-conversion operator available that can perform this
conversion, or the operator cannot be called

I think windows wants insert(at where, from where, length of where (not
iterator to where as you pass)
Not sure if this is STL problems with windows, or STL issues with GCC, or
GCC missing this error, no idea! Also isn't there either an append or
push_back method available which takes a iterator range, rather than calling
insert with vec.end?

Ginge





reply via email to

[Prev in Thread] Current Thread [Next in Thread]