Ogre allows replace allocators for allocate objects (using new and delete), but does not allows replace the allocators for stl containers (like stl::vector, stl::string, std::ostringstream
) that are also necessary.
All you have to do - it is added to all typedef stl containers "allocator" parameter, like
Code: Select all
typedef std::vector<SubMesh*, allocator<SubMesh*> > SubMeshList;
// instead
typedef std::vector<SubMesh*> SubMeshList;
and set in OgreConfig.h
This change does not affect users, but increases flexibility. This allows use of efficient allocators everywhere.