1
0
Fork 0
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:
bolero-MURAKAMI 2013-08-07 00:15:09 +09:00
parent ce16e24637
commit 7a1974742a
110 changed files with 727 additions and 436 deletions

View file

@ -2,8 +2,8 @@
#define SPROUT_MATH_LCM_HPP
#include <climits>
#include <limits>
#include <sprout/config.hpp>
#include <sprout/limits.hpp>
#include <sprout/math/gcd.hpp>
namespace sprout {
@ -56,7 +56,7 @@ namespace sprout {
struct lcm_optimal_evaluator {
public:
SPROUT_CONSTEXPR T operator()(T const& a, T const& b) const {
typedef std::numeric_limits<T> limits_type;
typedef sprout::numeric_limits<T> limits_type;
typedef sprout::math::detail::lcm_optimal_evaluator_helper_t<
T, limits_type::is_specialized, limits_type::is_signed
> helper_type;