Just a heads up that from now on in trunk, all STL containers are now using the configured custom memory allocators. This means that all containers need to have an allocator specified. There are some template helpers for this so that it's not so ugly (thanks to iloseall and Berserker for the help), so for example instead of this:
Code: Select all
typedef std::vector<Foo> FooList;
Code: Select all
typedef vector<Foo>::type FooList;
Code: Select all
typedef std::vector<Foo, STLAllocator<GeneralAllocPolicy> > FooList;
Code: Select all
typedef vector<Foo, ResourceAllocPolicy>::type FooList;
Code: Select all
typedef std::vector<Foo, STLAllocator<ResourceAllocPolicy> > FooList;
I've updated the coding standards to mention this in the memory management section.