Re: [Boost-bugs] [Boost C++ Libraries] #1879: region allocators: auto_alloc, scoped_alloc

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1879: region allocators: auto_alloc, scoped_alloc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-30 18:54:50


#1879: region allocators: auto_alloc, scoped_alloc
---------------------------+------------------------------------------------
  Reporter: xushiwei | Owner:
      Type: Bugs | Status: new
 Milestone: Boost 1.36.0 | Component: None
   Version: Boost 1.35.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------
Comment (by anonymous):

 [44939]:
 {{{
 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.
 }}}

 1. change class name: stl_alloc -> stl_allocator

 2. partially specialize stl_allocator

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1879#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC