[Boost-bugs] [Boost C++ Libraries] #8424: Interprocess private node allocator incompatible with unordered_set

Subject: [Boost-bugs] [Boost C++ Libraries] #8424: Interprocess private node allocator incompatible with unordered_set
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-10 09:32:03


#8424: Interprocess private node allocator incompatible with unordered_set
--------------------------------------------+-------------------------------
 Reporter: klemen.simonic@… | Owner: igaztanaga
     Type: Support Requests | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: Allocator, Unordered Container |
--------------------------------------------+-------------------------------
 I am wondering why I can not use private_node_allocator with
 boost::unordered_set. My compiler, MSVC11 (VS 2012) gives me the following
 error (short version):
 boost_1_53_0/boost/unordered/detail/unique.hpp(30): error C2039: 'pointer'
 : is not a member of
 boost::interprocess::private_node_allocator<T,SegmentManager,NodesPerBlock>'

 If I use boost::container::set with the same private_node_allocator, it
 works perfectly.

 Very similar happens with multi_index_container: it works with
 boost::interprocess::allocator, but it does not work with
 private_node_allocator.

 Is there any other way to allocate elements with containers in blocks of
 nodes in managed_memory?

 Thank you for your help.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8424>
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:12 UTC