mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +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,9 +1,9 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_SAWTOOTH_WAVE_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_SAWTOOTH_WAVE_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/sawtooth_iterator.hpp>
|
||||
|
@ -81,7 +81,7 @@ namespace sprout {
|
|||
)
|
||||
: base_type(
|
||||
iterator(0, frequency, amplitude, phase),
|
||||
iterator(std::numeric_limits<difference_type>::max(), frequency, amplitude, phase)
|
||||
iterator(sprout::numeric_limits<difference_type>::max(), frequency, amplitude, phase)
|
||||
)
|
||||
{}
|
||||
SPROUT_CONSTEXPR value_type const& frequency() const {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_SINUSOIDAL_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_SINUSOIDAL_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/sinusoid_iterator.hpp>
|
||||
|
@ -81,7 +81,7 @@ namespace sprout {
|
|||
)
|
||||
: base_type(
|
||||
iterator(0, frequency, amplitude, phase),
|
||||
iterator(std::numeric_limits<difference_type>::max(), frequency, amplitude, phase)
|
||||
iterator(sprout::numeric_limits<difference_type>::max(), frequency, amplitude, phase)
|
||||
)
|
||||
{}
|
||||
SPROUT_CONSTEXPR value_type frequency() const {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_SQUARE_WAVE_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_SQUARE_WAVE_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/square_iterator.hpp>
|
||||
|
@ -86,7 +86,7 @@ namespace sprout {
|
|||
)
|
||||
: base_type(
|
||||
iterator(0, frequency, amplitude, phase, duty),
|
||||
iterator(std::numeric_limits<difference_type>::max(), frequency, amplitude, phase, duty)
|
||||
iterator(sprout::numeric_limits<difference_type>::max(), frequency, amplitude, phase, duty)
|
||||
)
|
||||
{}
|
||||
SPROUT_CONSTEXPR value_type frequency() const {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_TRIANGLE_WAVE_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_TRIANGLE_WAVE_HPP
|
||||
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/limits.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/triangle_iterator.hpp>
|
||||
|
@ -81,7 +81,7 @@ namespace sprout {
|
|||
)
|
||||
: base_type(
|
||||
iterator(0, frequency, amplitude, phase),
|
||||
iterator(std::numeric_limits<difference_type>::max(), frequency, amplitude, phase)
|
||||
iterator(sprout::numeric_limits<difference_type>::max(), frequency, amplitude, phase)
|
||||
)
|
||||
{}
|
||||
SPROUT_CONSTEXPR value_type frequency() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue