Replaced leftover boost::true/false_type with std in counting_iterator.hpp.

Also made (unsigned) long long support mandatory.
This commit is contained in:
Andrey Semashev
2025-01-29 02:22:27 +03:00
parent fc99b7a15d
commit ef40faf620

View File

@ -34,7 +34,6 @@ namespace detail
template <class T> template <class T>
struct is_numeric_impl struct is_numeric_impl
{ {
#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS #ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
BOOST_STATIC_CONSTANT(bool, value = std::numeric_limits<T>::is_specialized); BOOST_STATIC_CONSTANT(bool, value = std::numeric_limits<T>::is_specialized);
@ -59,30 +58,28 @@ namespace detail
: std::integral_constant<bool, ::boost::iterators::detail::is_numeric_impl<T>::value> : std::integral_constant<bool, ::boost::iterators::detail::is_numeric_impl<T>::value>
{}; {};
#if defined(BOOST_HAS_LONG_LONG)
template <> template <>
struct is_numeric<boost::long_long_type> struct is_numeric<long long>
: boost::true_type {}; : std::true_type {};
template <> template <>
struct is_numeric<boost::ulong_long_type> struct is_numeric<unsigned long long>
: boost::true_type {}; : std::true_type {};
#endif
#if defined(BOOST_HAS_INT128) #if defined(BOOST_HAS_INT128)
template <> template <>
struct is_numeric<boost::int128_type> struct is_numeric<boost::int128_type>
: boost::true_type {}; : std::true_type {};
template <> template <>
struct is_numeric<boost::uint128_type> struct is_numeric<boost::uint128_type>
: boost::true_type {}; : std::true_type {};
#endif #endif
// Some compilers fail to have a numeric_limits specialization // Some compilers fail to have a numeric_limits specialization
template <> template <>
struct is_numeric<wchar_t> struct is_numeric<wchar_t>
: true_type {}; : std::true_type {};
template <class T> template <class T>
struct numeric_difference struct numeric_difference