[ODE] Possible dArray Bug
Russ Smith
russ at q12.org
Sat Aug 9 15:26:02 2003
> My proposed solution is this:
> void push (const T item) {
> if (_size < _anum) _size++; else _setSize (_size+1, sizeof(T));
> memcpy( &(((T*)_data)[_size-1]), &item, sizeof(T));
> }
i've made the change in CVS, thanks.
BTW, the header for array.h indicates that care should be used when C++
objects with constructor/copy semantics are used as array elements. but
i guess no one ever reads the comments. array.h is now only used by the
tri collider and some legacy and test code.
russ.
--
Russell Smith
http://www.q12.org