From 453564a5016684c75923766bdf6c181b0d8f15a5 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Wed, 27 Feb 2019 08:29:43 -0500 Subject: [PATCH] Use make_void directly instead of void_t for compatibility --- .../boost/type_traits/detail/has_binary_operator.hpp | 12 ++++++------ .../type_traits/detail/has_postfix_operator.hpp | 12 ++++++------ .../boost/type_traits/detail/has_prefix_operator.hpp | 12 ++++++------ include/boost/type_traits/has_minus.hpp | 12 ++++++------ include/boost/type_traits/has_minus_assign.hpp | 12 ++++++------ include/boost/type_traits/has_plus_assign.hpp | 12 ++++++------ include/boost/type_traits/is_virtual_base_of.hpp | 2 +- 7 files changed, 37 insertions(+), 37 deletions(-) diff --git a/include/boost/type_traits/detail/has_binary_operator.hpp b/include/boost/type_traits/detail/has_binary_operator.hpp index ec6e52e..7e74705 100644 --- a/include/boost/type_traits/detail/has_binary_operator.hpp +++ b/include/boost/type_traits/detail/has_binary_operator.hpp @@ -47,25 +47,25 @@ namespace boost struct dont_care; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp)::type>() BOOST_TT_TRAIT_OP std::declval::type>())> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp)::type>() BOOST_TT_TRAIT_OP std::declval::type>())>::type> : public boost::integral_constant::type>() BOOST_TT_TRAIT_OP std::declval::type>()), Ret>::value> {}; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp)::type>() BOOST_TT_TRAIT_OP std::declval::type>())> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp)::type>() BOOST_TT_TRAIT_OP std::declval::type>())>::type> : public boost::integral_constant::type>() BOOST_TT_TRAIT_OP std::declval::type>())>::value> {}; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp)::type>() BOOST_TT_TRAIT_OP std::declval::type>())> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp)::type>() BOOST_TT_TRAIT_OP std::declval::type>())>::type> : public boost::true_type {}; } diff --git a/include/boost/type_traits/detail/has_postfix_operator.hpp b/include/boost/type_traits/detail/has_postfix_operator.hpp index 1812416..d900acd 100644 --- a/include/boost/type_traits/detail/has_postfix_operator.hpp +++ b/include/boost/type_traits/detail/has_postfix_operator.hpp @@ -25,25 +25,25 @@ namespace boost struct dont_care; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp)::type>() BOOST_TT_TRAIT_OP) > > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp)::type>() BOOST_TT_TRAIT_OP) >::type> : public boost::integral_constant::type>() BOOST_TT_TRAIT_OP), Ret>::value> {}; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp)::type>()BOOST_TT_TRAIT_OP)> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp)::type>()BOOST_TT_TRAIT_OP)>::type> : public boost::integral_constant::type>() BOOST_TT_TRAIT_OP)>::value> {}; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp)::type>() BOOST_TT_TRAIT_OP)> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp)::type>() BOOST_TT_TRAIT_OP)>::type> : public boost::true_type {}; } diff --git a/include/boost/type_traits/detail/has_prefix_operator.hpp b/include/boost/type_traits/detail/has_prefix_operator.hpp index 31987d6..77818c2 100644 --- a/include/boost/type_traits/detail/has_prefix_operator.hpp +++ b/include/boost/type_traits/detail/has_prefix_operator.hpp @@ -34,25 +34,25 @@ namespace boost struct dont_care; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp)::type>()) > > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _ret_imp)::type>()) >::type> : public boost::integral_constant::type>() ), Ret>::value> {}; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp)::type>())> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _void_imp)::type>())>::type> : public boost::integral_constant::type>())>::value> {}; - template > + template struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp) : public boost::false_type {}; template - struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp)::type>() )> > + struct BOOST_JOIN(BOOST_TT_TRAIT_NAME, _dc_imp)::type>() )>::type> : public boost::true_type {}; } diff --git a/include/boost/type_traits/has_minus.hpp b/include/boost/type_traits/has_minus.hpp index 3f6271a..fcd5d94 100644 --- a/include/boost/type_traits/has_minus.hpp +++ b/include/boost/type_traits/has_minus.hpp @@ -52,25 +52,25 @@ namespace boost struct dont_care; - template > + template struct has_minus_ret_imp : public boost::false_type {}; template - struct has_minus_ret_imp::type>() - std::declval::type>())> > + struct has_minus_ret_imp::type>() - std::declval::type>())>::type> : public boost::integral_constant::type>() - std::declval::type>()), Ret>::value> {}; - template > + template struct has_minus_void_imp : public boost::false_type {}; template - struct has_minus_void_imp::type>() - std::declval::type>())> > + struct has_minus_void_imp::type>() - std::declval::type>())>::type> : public boost::integral_constant::type>() - std::declval::type>())>::value> {}; - template > + template struct has_minus_dc_imp : public boost::false_type {}; template - struct has_minus_dc_imp::type>() - std::declval::type>())> > + struct has_minus_dc_imp::type>() - std::declval::type>())>::type> : public boost::true_type {}; template diff --git a/include/boost/type_traits/has_minus_assign.hpp b/include/boost/type_traits/has_minus_assign.hpp index 936ffed..ea3169e 100644 --- a/include/boost/type_traits/has_minus_assign.hpp +++ b/include/boost/type_traits/has_minus_assign.hpp @@ -53,25 +53,25 @@ namespace boost struct dont_care; - template > + template struct has_minus_assign_ret_imp : public boost::false_type {}; template - struct has_minus_assign_ret_imp::type>() -= std::declval::type>())> > + struct has_minus_assign_ret_imp::type>() -= std::declval::type>())>::type> : public boost::integral_constant::type>() -= std::declval::type>()), Ret>::value> {}; - template > + template struct has_minus_assign_void_imp : public boost::false_type {}; template - struct has_minus_assign_void_imp::type>() -= std::declval::type>())> > + struct has_minus_assign_void_imp::type>() -= std::declval::type>())>::type> : public boost::integral_constant::type>() -= std::declval::type>())>::value> {}; - template > + template struct has_minus_assign_dc_imp : public boost::false_type {}; template - struct has_minus_assign_dc_imp::type>() -= std::declval::type>())> > + struct has_minus_assign_dc_imp::type>() -= std::declval::type>())>::type> : public boost::true_type {}; template diff --git a/include/boost/type_traits/has_plus_assign.hpp b/include/boost/type_traits/has_plus_assign.hpp index cf012e2..161ca15 100644 --- a/include/boost/type_traits/has_plus_assign.hpp +++ b/include/boost/type_traits/has_plus_assign.hpp @@ -56,25 +56,25 @@ namespace boost struct dont_care; - template > + template struct has_plus_assign_ret_imp : public boost::false_type {}; template - struct has_plus_assign_ret_imp::type>() += std::declval::type>())> > + struct has_plus_assign_ret_imp::type>() += std::declval::type>())>::type> : public boost::integral_constant::type>() += std::declval::type>()), Ret>::value> {}; - template > + template struct has_plus_assign_void_imp : public boost::false_type {}; template - struct has_plus_assign_void_imp::type>() += std::declval::type>())> > + struct has_plus_assign_void_imp::type>() += std::declval::type>())>::type> : public boost::integral_constant::type>() += std::declval::type>())>::value> {}; - template > + template struct has_plus_assign_dc_imp : public boost::false_type {}; template - struct has_plus_assign_dc_imp::type>() += std::declval::type>())> > + struct has_plus_assign_dc_imp::type>() += std::declval::type>())>::type> : public boost::true_type {}; template diff --git a/include/boost/type_traits/is_virtual_base_of.hpp b/include/boost/type_traits/is_virtual_base_of.hpp index 60ffbc8..fe2cdcf 100644 --- a/include/boost/type_traits/is_virtual_base_of.hpp +++ b/include/boost/type_traits/is_virtual_base_of.hpp @@ -44,7 +44,7 @@ namespace boost { // They can also fall back to the behaviour of reinterpret_cast, which allows is_virtual_base_of to work on non-class types too. // Note that because we are casting pointers there can be no user-defined operators to interfere. template()))>* = + typename boost::make_void()))>::type* = nullptr> constexpr bool is_virtual_base_impl(int) { return false; }