From a52684beeafb507028fab1e650f570784d26462e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 25 Jun 2016 11:03:57 +0200 Subject: [PATCH] Some dispatch_uses_allocator overloads don't forward the allocator argument --- .../boost/container/detail/dispatch_uses_allocator.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/container/detail/dispatch_uses_allocator.hpp b/include/boost/container/detail/dispatch_uses_allocator.hpp index 3000f7c..cf2f2ba 100644 --- a/include/boost/container/detail/dispatch_uses_allocator.hpp +++ b/include/boost/container/detail/dispatch_uses_allocator.hpp @@ -222,7 +222,7 @@ template < typename ConstructAlloc BOOST_CONTAINER_DOC1ST(void, typename container_detail::enable_if >::type) dispatch_uses_allocator ( ConstructAlloc & construct_alloc - , ArgAlloc & arg_alloc + , BOOST_FWD_REF(ArgAlloc) arg_alloc , Pair* p) { (dispatch_uses_allocator)(construct_alloc, arg_alloc, container_detail::addressof(p->first)); @@ -243,7 +243,7 @@ template < typename ConstructAlloc BOOST_CONTAINER_DOC1ST(void, typename container_detail::enable_if >::type) dispatch_uses_allocator ( ConstructAlloc & construct_alloc - , ArgAlloc & arg_alloc + , BOOST_FWD_REF(ArgAlloc) arg_alloc , Pair* p, BOOST_FWD_REF(U) x, BOOST_FWD_REF(V) y) { (dispatch_uses_allocator)(construct_alloc, arg_alloc, container_detail::addressof(p->first), ::boost::forward(x)); @@ -263,7 +263,7 @@ template < typename ConstructAlloc BOOST_CONTAINER_DOC1ST(void, typename container_detail::enable_if< container_detail::is_pair >::type) dispatch_uses_allocator (ConstructAlloc & construct_alloc - , ArgAlloc & arg_alloc + , BOOST_FWD_REF(ArgAlloc) arg_alloc , Pair* p, Pair2& x) { (dispatch_uses_allocator)(construct_alloc, arg_alloc, p, x.first, x.second); } @@ -276,7 +276,7 @@ typename container_detail::enable_if_and , container_detail::not_ > >::type //This is needed for MSVC10 and ambiguous overloads dispatch_uses_allocator (ConstructAlloc & construct_alloc - , ArgAlloc & arg_alloc + , BOOST_FWD_REF(ArgAlloc) arg_alloc , Pair* p, BOOST_RV_REF_BEG Pair2 BOOST_RV_REF_END x) { (dispatch_uses_allocator)(construct_alloc, arg_alloc, p, ::boost::move(x.first), ::boost::move(x.second)); }