Converted counting_iterator to rely on TypeTraits instead of MPL.

This commit is contained in:
Andrey Semashev
2022-01-13 16:49:28 +03:00
parent 7a200905dd
commit abe6fbfd4b
2 changed files with 23 additions and 24 deletions

View File

@ -30,7 +30,7 @@
#include <boost/iterator/new_iterator_tests.hpp>
#include <boost/next_prior.hpp>
#include <boost/mpl/if.hpp>
#include <boost/type_traits/conditional.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/limits.hpp>
@ -68,7 +68,7 @@ struct unsigned_assert_nonnegative
template <class T>
struct assert_nonnegative
: boost::mpl::if_c<
: boost::conditional<
std::numeric_limits<T>::is_signed
, signed_assert_nonnegative<T>
, unsigned_assert_nonnegative<T>