
9 Jun
2009
9 Jun
'09
12:22 p.m.
Hi Andrew,
typedef std::vector<T, mono::allocator<T> > Vector; Vector v(mono::allocator<T>(store));
It' may appear be as graceful, but it doesn't require the duplication of classes, which can be harmful. There are libraries in Boost that specialize (templates) on containers types, and new containers would likely fail the specializations.
It is possible to use the proposed system without the need for custom container types. It is also possible to use STL without the need for default allocator types. Regards, Christian.