Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-04-30 13:25:15


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

Since, stl_alloc holds a pointer to the real allocator, shouldn't
stl_alloc<void, ...> also have such a pointer and the appropriate

You should partially specialize:
template<class Alloc>
class stl_alloc<void, Alloc> { ... };

Also, the typedefs and rebind template of stl_alloc<void, ...> should be

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at