From f1481f0deb682d9fc645ab21fd6f89736b4a41ac Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Mon, 20 Jun 2022 07:50:12 -0700 Subject: [PATCH] Remove dependency on Boost.Detail --- include/boost/unordered/detail/implementation.hpp | 12 +++++------- test/helpers/random_values.hpp | 7 +++---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 200cd1e7..51ea00ae 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -1698,10 +1697,9 @@ namespace boost { }; template - struct rv_ref - : boost::detail::if_true::value>:: - BOOST_NESTED_TEMPLATE then, - please_ignore_this_overload>::type + struct rv_ref : boost::conditional::value, + boost::unordered::detail::rv_ref_impl, + please_ignore_this_overload>::type { }; @@ -3507,8 +3505,8 @@ namespace boost { sizeof(choice2::type) }; - typedef typename boost::detail::if_true::BOOST_NESTED_TEMPLATE - then::type type; + typedef + typename boost::conditional::type type; }; template struct set_extractor diff --git a/test/helpers/random_values.hpp b/test/helpers/random_values.hpp index d139d180..508f7475 100644 --- a/test/helpers/random_values.hpp +++ b/test/helpers/random_values.hpp @@ -9,8 +9,8 @@ #include "./generators.hpp" #include "./list.hpp" #include "./metafunctions.hpp" +#include #include -#include namespace test { template struct unordered_generator_set @@ -69,9 +69,8 @@ namespace test { template struct unordered_generator_base - : public boost::detail::if_true::value>:: - BOOST_NESTED_TEMPLATE then, - test::unordered_generator_map > + : public boost::conditional::value, + test::unordered_generator_set, test::unordered_generator_map > { };