$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-04-30 13:25:15
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