From ef40faf6207c88f8556f1b3f19e1bb9ad5d00025 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Wed, 29 Jan 2025 02:22:27 +0300 Subject: [PATCH] Replaced leftover boost::true/false_type with std in counting_iterator.hpp. Also made (unsigned) long long support mandatory. --- include/boost/iterator/counting_iterator.hpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/include/boost/iterator/counting_iterator.hpp b/include/boost/iterator/counting_iterator.hpp index ab99eba..9781d41 100644 --- a/include/boost/iterator/counting_iterator.hpp +++ b/include/boost/iterator/counting_iterator.hpp @@ -34,7 +34,6 @@ namespace detail template struct is_numeric_impl { - #ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS BOOST_STATIC_CONSTANT(bool, value = std::numeric_limits::is_specialized); @@ -59,30 +58,28 @@ namespace detail : std::integral_constant::value> {}; -#if defined(BOOST_HAS_LONG_LONG) template <> - struct is_numeric - : boost::true_type {}; + struct is_numeric + : std::true_type {}; template <> - struct is_numeric - : boost::true_type {}; -#endif + struct is_numeric + : std::true_type {}; #if defined(BOOST_HAS_INT128) template <> struct is_numeric - : boost::true_type {}; + : std::true_type {}; template <> struct is_numeric - : boost::true_type {}; + : std::true_type {}; #endif // Some compilers fail to have a numeric_limits specialization template <> struct is_numeric - : true_type {}; + : std::true_type {}; template struct numeric_difference