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

@ -17,7 +17,7 @@ namespace sprout {
>
inline SPROUT_CONSTEXPR FloatType
fabs(FloatType x) {
return sprout::math::isnan(x) ? std::numeric_limits<FloatType>::quiet_NaN()
return sprout::math::isnan(x) ? sprout::numeric_limits<FloatType>::quiet_NaN()
: x == 0 ? FloatType(0)
: sprout::math::copysign(x, FloatType(0))
;