mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
workaround for no c++11 numeric_limits
This commit is contained in:
parent
ce16e24637
commit
7a1974742a
110 changed files with 727 additions and 436 deletions
|
@ -1,11 +1,11 @@
|
|||
#ifndef SPROUT_ITERATOR_COUNTING_ITERATOR_HPP
|
||||
#define SPROUT_ITERATOR_COUNTING_ITERATOR_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/iterator/next.hpp>
|
||||
#include <sprout/iterator/prev.hpp>
|
||||
#include <sprout/iterator/distance.hpp>
|
||||
|
@ -36,7 +36,7 @@ namespace sprout {
|
|||
template<typename T, typename sprout::enabler_if<std::is_integral<T>::value>::type = sprout::enabler>
|
||||
static SPROUT_CONSTEXPR T
|
||||
default_value() {
|
||||
return std::numeric_limits<value_type>::max();
|
||||
return sprout::numeric_limits<value_type>::max();
|
||||
}
|
||||
template<typename T, typename sprout::enabler_if<!std::is_integral<T>::value>::type = sprout::enabler>
|
||||
static SPROUT_CONSTEXPR T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue