void *btAlignedAlloc (int size, int alignment); template class btAlignedAllocator { typedef btAlignedAllocator< T, Alignment> self_type; public: T *allocate (int n, const T** hint = 0) { (void) hint; return reinterpret_cast(btAlignedAlloc(sizeof (T) * n, Alignment)); } }; #include template class btAlignedObjectArray { btAlignedAllocator m_allocator; int m_size; T *m_data; public: void push_back () { T *s = (T*) m_allocator.allocate (m_size * 2); int i; for (i=0; i m_manifoldsPtr; virtual void getNewManifold (); }; void btCollisionDispatcher::getNewManifold () { m_manifoldsPtr.push_back (); }