Re: [Boost-bugs] [Boost C++ Libraries] #6260: boost::multi_index can not work with nedmalloc

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6260: boost::multi_index can not work with nedmalloc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-16 21:33:50


#6260: boost::multi_index can not work with nedmalloc
--------------------------------------+-------------------------------------
  Reporter: wucy <sheqq_10@…> | Owner: joaquin
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Changes (by joaquin):

  * owner: mariomulansky => joaquin

Comment:

 Hello,

 This is a messy part of the standard. Allocators are not required to be
 assignable, but it they're stateful (which the standard recommmends to
 support) then efficient container swap has to resort to swapping
 allocators as well: unfortunately there's no compile-time way to determine
 if a given allocator type is stateful, and assigning (or swapping)
 multi_index_containers implicitly invoke allocator assignment.

 You're simplest workaround is to define (possibly as a do-nothing
 function) operator= for nedallocator. Defining a swap function for
 nedallocators (within the same namespace as nedallocators are defined)
 will work too.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6260#comment:1>
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:50:08 UTC