mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix counting_iterator
This commit is contained in:
parent
ea22a6ba5c
commit
a9da4b2a1f
11 changed files with 141 additions and 89 deletions
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_COUNTING_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_COUNTING_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/pit.hpp>
|
||||
|
@ -85,7 +84,7 @@ namespace sprout {
|
|||
explicit SPROUT_CONSTEXPR counting_range(value_type const& first)
|
||||
: base_type(
|
||||
iterator(first),
|
||||
iterator(std::numeric_limits<value_type>::max())
|
||||
iterator()
|
||||
)
|
||||
{}
|
||||
SPROUT_CONSTEXPR counting_range(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue