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,7 @@
#ifndef SPROUT_ITERATOR_COUNTING_ITERATOR_HPP
#define SPROUT_ITERATOR_COUNTING_ITERATOR_HPP
#include <cstddef>
#include <limits>
#include <iterator>
#include <utility>
#include <type_traits>
@ -34,7 +34,9 @@ namespace sprout {
value_type current_;
private:
public:
counting_iterator() = default;
SPROUT_CONSTEXPR counting_iterator()
: current_(std::numeric_limits<value_type>::max())
{}
counting_iterator(counting_iterator const&) = default;
explicit SPROUT_CONSTEXPR counting_iterator(value_type const& v)
: current_(v)