Opened 14 years ago
Closed 14 years ago
#1883 closed Bugs (fixed)
[interprocess] boost::interprocess::allocator<>::segment_manager is a private typedef but it's used as a public typedef in the documentation
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.35.0 | Severity: | Problem |
Keywords: | allocator segment_manager | Cc: |
Description
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;
Fixed in revision 45019