mirror of
https://github.com/boostorg/iterator.git
synced 2025-08-03 14:54:26 +02:00
Use std::type_identity when possible in counting_iterator.hpp.
This commit is contained in:
@@ -13,9 +13,9 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
#endif
|
#endif
|
||||||
#include <boost/core/use_default.hpp>
|
#include <boost/core/use_default.hpp>
|
||||||
#include <boost/type_traits/type_identity.hpp>
|
|
||||||
#include <boost/detail/numeric_traits.hpp>
|
#include <boost/detail/numeric_traits.hpp>
|
||||||
#include <boost/iterator/iterator_adaptor.hpp>
|
#include <boost/iterator/iterator_adaptor.hpp>
|
||||||
|
#include <boost/iterator/detail/type_traits/type_identity.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace iterators {
|
namespace iterators {
|
||||||
@@ -109,7 +109,7 @@ namespace detail
|
|||||||
CategoryOrTraversal
|
CategoryOrTraversal
|
||||||
, typename std::conditional<
|
, typename std::conditional<
|
||||||
is_numeric<Incrementable>::value
|
is_numeric<Incrementable>::value
|
||||||
, boost::type_identity<random_access_traversal_tag>
|
, iterators::detail::type_identity<random_access_traversal_tag>
|
||||||
, iterator_traversal<Incrementable>
|
, iterator_traversal<Incrementable>
|
||||||
>::type
|
>::type
|
||||||
>::type traversal;
|
>::type traversal;
|
||||||
|
Reference in New Issue
Block a user