diff options
Diffstat (limited to 'boost/multiprecision/detail/rebind.hpp')
-rw-r--r-- | boost/multiprecision/detail/rebind.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/multiprecision/detail/rebind.hpp b/boost/multiprecision/detail/rebind.hpp index 9aadf7ba41..1ad0f7dec0 100644 --- a/boost/multiprecision/detail/rebind.hpp +++ b/boost/multiprecision/detail/rebind.hpp @@ -13,7 +13,11 @@ template <class value_type, class my_allocator> struct rebind { +#ifndef BOOST_NO_CXX11_ALLOCATOR + typedef typename std::allocator_traits<my_allocator>::template rebind_alloc<value_type> type; +#else typedef typename my_allocator::template rebind<value_type>::other type; +#endif }; } } } } // namespace boost::multiprecision::backends::detail |