
30 Apr
2008
30 Apr
'08
7:08 p.m.
On Wed, Apr 30, 2008 at 10:25 AM, Steven Watanabe <watanabesj@gmail.com> wrote:
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.
My personal preference would be to spell out stl_allocator entirely rather than abbreviating it to stl_alloc.
In Christ, Steven Watanabe