// good
std::deque<A_POINT>::const_iterator it = p.POINTS.begin();
// bad
std::deque<A_POINT>::const_reverse_iterator it = p.POINTS.rbegin();
// reason:
error C2440: 'initializing' :
'class std::reverse_iterator<
class std::deque<
struct A_POINT,class std::allocator<struct A_POINT>
::iterator, struct A_POINT,struct A_POINT &,
struct A_POINT *,int>'
cannot be converted to
'class std::reverse_iterator<
class std::deque<
struct A_POINT,class std::allocator<struct A_POINT>::const_iterator,
struct A_POINT,struct A_POINT const &,
struct A_POINT const *,int>'
Source type was not accepted from any c'tors or ambigious.
Short: The _const_ is freaking out.
Now: How can I print out a deque backwards in VC6?
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com