From 2f314f5ff9f8dd59b93d74abbb0da1f39a5b9588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 3 Jan 2019 03:31:40 +0100 Subject: [PATCH] Explicitly state return type as movelib's enable_if has changed defaults to be more sfinae-friendly --- .../container/detail/dispatch_uses_allocator.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/boost/container/detail/dispatch_uses_allocator.hpp b/include/boost/container/detail/dispatch_uses_allocator.hpp index 0b8cfea..ff88e27 100644 --- a/include/boost/container/detail/dispatch_uses_allocator.hpp +++ b/include/boost/container/detail/dispatch_uses_allocator.hpp @@ -219,7 +219,7 @@ template < typename ConstructAlloc , typename ArgAlloc , typename Pair > inline -BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if >::type) +BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if BOOST_MOVE_I void >::type) dispatch_uses_allocator ( ConstructAlloc & construct_alloc , BOOST_FWD_REF(ArgAlloc) arg_alloc @@ -240,7 +240,7 @@ BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if >::type) template < typename ConstructAlloc , typename ArgAlloc , class Pair, class U, class V> -BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if >::type) +BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if BOOST_MOVE_I void>::type) dispatch_uses_allocator ( ConstructAlloc & construct_alloc , BOOST_FWD_REF(ArgAlloc) arg_alloc @@ -260,7 +260,7 @@ BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if >::type) template < typename ConstructAlloc , typename ArgAlloc , class Pair, class Pair2> -BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if< dtl::is_pair >::type) +BOOST_CONTAINER_DOC1ST(void, typename dtl::enable_if< dtl::is_pair BOOST_MOVE_I void >::type) dispatch_uses_allocator (ConstructAlloc & construct_alloc , BOOST_FWD_REF(ArgAlloc) arg_alloc @@ -286,7 +286,7 @@ typename dtl::enable_if_and template< typename ConstructAlloc, typename ArgAlloc, class Pair \ , template class BoostTuple \ BOOST_MOVE_I_IF(BOOST_MOVE_OR(N,M)) BOOST_MOVE_CLASS##N BOOST_MOVE_I_IF(BOOST_MOVE_AND(N,M)) BOOST_MOVE_CLASSQ##M > \ -typename dtl::enable_if< dtl::is_pair >::type\ +typename dtl::enable_if< dtl::is_pair BOOST_MOVE_I void>::type\ dispatch_uses_allocator( ConstructAlloc & construct_alloc, BOOST_FWD_REF(ArgAlloc) arg_alloc, Pair* pair, piecewise_construct_t\ , BoostTuple p\ , BoostTuple q)\ @@ -330,7 +330,7 @@ BOOST_MOVE_ITER2D_0TOMAX(9, BOOST_DISPATCH_USES_ALLOCATOR_PIECEWISE_CONSTRUCT_BO template< typename ConstructAlloc, typename ArgAlloc, class Pair , template class Tuple, class... Args1, class... Args2> - typename dtl::enable_if< dtl::is_pair >::type + typename dtl::enable_if< dtl::is_pair, void >::type dispatch_uses_allocator( ConstructAlloc & construct_alloc, BOOST_FWD_REF(ArgAlloc) arg_alloc, Pair* pair, piecewise_construct_t , Tuple t1, Tuple t2) { @@ -346,7 +346,7 @@ BOOST_MOVE_ITER2D_0TOMAX(9, BOOST_DISPATCH_USES_ALLOCATOR_PIECEWISE_CONSTRUCT_BO template< typename ConstructAlloc, typename ArgAlloc, class Pair\ , template class StdTuple\ BOOST_MOVE_I_IF(BOOST_MOVE_OR(N,M)) BOOST_MOVE_CLASS##N BOOST_MOVE_I_IF(BOOST_MOVE_AND(N,M)) BOOST_MOVE_CLASSQ##M > \ - typename dtl::enable_if< dtl::is_pair >::type\ + typename dtl::enable_if< dtl::is_pair BOOST_MOVE_I void>::type\ dispatch_uses_allocator(ConstructAlloc & construct_alloc, BOOST_FWD_REF(ArgAlloc) arg_alloc, Pair* pair, piecewise_construct_t\ , StdTuple p\ , StdTuple q)\ @@ -380,7 +380,7 @@ BOOST_MOVE_ITER2D_0TOMAX(9, BOOST_DISPATCH_USES_ALLOCATOR_PIECEWISE_CONSTRUCT_BO template< typename ConstructAlloc, typename ArgAlloc, class Pair\ , template class StdTuple \ BOOST_MOVE_I_IF(BOOST_MOVE_OR(N,M)) BOOST_MOVE_CLASS##N BOOST_MOVE_I_IF(BOOST_MOVE_AND(N,M)) BOOST_MOVE_CLASSQ##M > \ - typename dtl::enable_if< dtl::is_pair >::type\ + typename dtl::enable_if< dtl::is_pair BOOST_MOVE_I void>::type\ dispatch_uses_allocator\ ( ConstructAlloc & construct_alloc, BOOST_FWD_REF(ArgAlloc) arg_alloc, Pair* pair, piecewise_construct_t\ , StdTuple p\ @@ -431,7 +431,7 @@ typename dtl::enable_if< dtl::is_pair, void >::type #define BOOST_CONTAINER_DISPATCH_USES_ALLOCATOR_PAIR_TRY_EMPLACE_CODE(N) \ template \ inline typename dtl::enable_if\ - < dtl::is_pair, void >::type\ + < dtl::is_pair BOOST_MOVE_I void >::type\ dispatch_uses_allocator\ (ConstructAlloc &construct_alloc, BOOST_FWD_REF(ArgAlloc) arg_alloc, Pair* p, try_emplace_t, \ BOOST_FWD_REF(KeyType) k BOOST_MOVE_I##N BOOST_MOVE_UREF##N)\