Subject: [Boost-bugs] [Boost C++ Libraries] #1883: [interprocess] boost::interprocess::allocator<>::segment_manager is a private typedef but it's used as a public typedef in the documentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-29 17:59:04
#1883: [interprocess] boost::interprocess::allocator<>::segment_manager is a
private typedef but it's used as a public typedef in the documentation
---------------------------------------------------+------------------------
Reporter: Jason Sachs <jsachs_at_[hidden]> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.35.0 | Severity: Problem
Keywords: allocator segment_manager |
---------------------------------------------------+------------------------
Documentation:
http://www.boost.org/doc/libs/1_35_0/doc/html/interprocess/allocators_containers.html
<excerpt>
Boost.Interprocess allocators also have a get_segment_manager() function
that returns the underlying segment manager that they have received in the
constructor:
Allocator::segment_manager s = alloc_instance.get_segment_manager();
AnotherType *a =
s->construct<AnotherType>(anonymous_instance)(/*Parameters*/);
</excerpt>
Code:
http://www.boost.org/doc/libs/1_35_0/boost/interprocess/allocators/allocator.hpp
(also in svn trunk, Revision 44886)
template<class T, class SegmentManager>
class allocator
{
/// @cond
private:
//Self type
typedef allocator<T, SegmentManager> self_t;
//Segment manager
typedef SegmentManager segment_manager;
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1883>
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