fix counting_iterator

This commit is contained in:
bolero-MURAKAMI 2012-05-23 19:33:06 +09:00
parent ea22a6ba5c
commit a9da4b2a1f
11 changed files with 141 additions and 89 deletions

View file

@ -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(