Hello Jeremy, > I'll fix the iterator issue and then make some screenshots next.
Ok, fixed. It's a bit sad that I have to use the indices instead of iterators,
but in MS's C++ runtime, an assert is generated whenever you try to increment
an iterator past the end of the vector.
_Myt& operator+=(difference_type _Off)
{ // increment by integer
_SCL_SECURE_VALIDATE(this->_Mycont != NULL);
_SCL_SECURE_VALIDATE_RANGE(
_Myptr + _Off <= ((_Myvec *)(this->_Mycont))->_Mylast &&
_Myptr + _Off >= ((_Myvec *)(this->_Mycont))->_Myfirst);
_Myptr += _Off;
return (*this);
}
I can't even change the check to
for(ConstIterator i = _objects.begin() + begin; (i + add) < e; i += add) {
because operator+ uses operator+= ! So I'll run into the same assert.
_Myt operator+(difference_type _Off) const
{ // return this + integer
_Myt _Tmp = *this;
return (_Tmp += _Off);
}
So I'm really stuck and need to use the index:
for(unsigned int i = begin; i < _objects.size(); i += add) {
That works. I had to make a similar change to Table.cpp. Diffs attached.
Now all the examples run on Windows. I'll take screenshots to make sure the
output is the same (should be, but I'm not sure).
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
Window.diff
Description: Binary data
Table.cpp.diff
Description: Binary data
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

