]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/lockfree/stack.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / lockfree / stack.hpp
index 65f46b710df8eb9aa76f7eba9200d1eacdb16a81..b9e43df9998fe043964c14145c82436747a52fb8 100644 (file)
@@ -15,6 +15,7 @@
 #include <boost/tuple/tuple.hpp>
 #include <boost/type_traits/is_copy_constructible.hpp>
 
+#include <boost/lockfree/detail/allocator_rebind_helper.hpp>
 #include <boost/lockfree/detail/atomic.hpp>
 #include <boost/lockfree/detail/copy_payload.hpp>
 #include <boost/lockfree/detail/freelist.hpp>
@@ -144,7 +145,7 @@ public:
     }
 
     template <typename U>
-    explicit stack(typename node_allocator::template rebind<U>::other const & alloc):
+    explicit stack(typename detail::allocator_rebind_helper<node_allocator, U>::type const & alloc):
         pool(alloc, capacity)
     {
         BOOST_STATIC_ASSERT(has_capacity);
@@ -169,7 +170,7 @@ public:
     }
 
     template <typename U>
-    stack(size_type n, typename node_allocator::template rebind<U>::other const & alloc):
+    stack(size_type n, typename detail::allocator_rebind_helper<node_allocator, U>::type const & alloc):
         pool(alloc, n)
     {
         BOOST_STATIC_ASSERT(!has_capacity);