diff --git a/include/boost/interprocess/offset_ptr.hpp b/include/boost/interprocess/offset_ptr.hpp index fca444ea..1b57bb4f 100644 --- a/include/boost/interprocess/offset_ptr.hpp +++ b/include/boost/interprocess/offset_ptr.hpp @@ -444,9 +444,17 @@ class offset_ptr //!Compatibility with pointer_traits //! + #if defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) template struct rebind { typedef offset_ptr other; }; + #else + template + using rebind = offset_ptr; + #ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED + typedef offset_ptr other; + #endif //BOOST_INTERPROCESS_DOXYGEN_INVOKED + #endif //!Compatibility with pointer_traits //!