Boost logo

Boost :

From: shiwei xu (xushiweizh_at_[hidden])
Date: 2008-04-30 15:08:38


On Wed, Apr 30, 2008 at 10:25 AM, Steven Watanabe <watanabesj_at_[hidden]>
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

Done. See http://svn.boost.org/trac/boost/changeset/44939


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk