
AMDG shiwei xu wrote:
I'm glad to say that now "GC Allocator" is a sandbox library of boost.
To gain the source code, please svn checkout http://svn.boost.org/svn/boost/sandbox/memory/.
Since, stl_alloc holds a pointer to the real allocator, shouldn't stl_alloc<void, ...> also have such a pointer and the appropriate constructors? You should partially specialize: template<class Alloc> class stl_alloc<void, Alloc> { ... }; Also, the typedefs and rebind template of stl_alloc<void, ...> should be public. I would also ask that everything go in namespace boost::memory, rather than directly in namespace boost. My personal preference would be to spell out stl_allocator entirely rather than abbreviating it to stl_alloc. In Christ, Steven Watanabe