mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 04:47:20 +02:00
Replaced leftover boost::true/false_type with std in counting_iterator.hpp.
Also made (unsigned) long long support mandatory.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user