K
Kavvy
Hello,
Where it2 is a vector<Body3d>::const_iterator
How come I can't do this
float xd = (*it2).getXpos();
(Which fails with a "error C2662: 'Body3d::getXpos' : cannot convert 'this'
pointer from 'const std::allocator<_Ty>::value_type' to 'Body3d &')
I have to do this to get it to work.
Body3d bd = (*it2);
float xd = db.getXpos();
Seems like a step backwards!
Where it2 is a vector<Body3d>::const_iterator
How come I can't do this
float xd = (*it2).getXpos();
(Which fails with a "error C2662: 'Body3d::getXpos' : cannot convert 'this'
pointer from 'const std::allocator<_Ty>::value_type' to 'Body3d &')
I have to do this to get it to work.
Body3d bd = (*it2);
float xd = db.getXpos();
Seems like a step backwards!