Subject: [Boost-bugs] [Boost C++ Libraries] #11799: boost::interprocess::offset_ptr not compatible with C++11 std::pointer_traits
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-17 14:39:30
#11799: boost::interprocess::offset_ptr not compatible with C++11
std::pointer_traits
----------------------------------------+------------------------
Reporter: Chris Clearwater <chris@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
Version: Boost 1.59.0 | Severity: Problem
Keywords: |
----------------------------------------+------------------------
offset_ptr defines its rebind member as:
{{{
template <class U>
struct rebind
{ typedef offset_ptr<U, DifferenceType, OffsetType, OffsetAlignment>
other; };
}}}
but std::pointer_traits<T>::rebind is defined as:
{{{
Ptr::rebind<U> if exists, otherwise Template<U, Args...> if Ptr is a
template instantiation Template<T, Args...>
}}}
This means that offset_ptr's rebind should just be an alias template
rather than a struct with an ::other member.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11799> 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:19 UTC