--- src/mp_std_bits.cc.ori 2012-12-20 21:57:17.534070843 +0100 +++ src/mp_std_bits.cc 2012-12-20 21:57:33.591868969 +0100 @@ -45,7 +45,6 @@ const bool std::numeric_limits::is_bounded; const bool std::numeric_limits::is_modulo; const bool std::numeric_limits::traps; -const bool std::numeric_limits::tininess_before; const std::float_round_style std::numeric_limits::round_style; const bool std::numeric_limits::is_specialized; @@ -68,5 +67,4 @@ const bool std::numeric_limits::is_bounded; const bool std::numeric_limits::is_modulo; const bool std::numeric_limits::traps; -const bool std::numeric_limits::tininess_before; const std::float_round_style std::numeric_limits::round_style; --- src/mp_std_bits.defs.hh.ori 2012-12-20 22:00:34.210598284 +0100 +++ src/mp_std_bits.defs.hh 2012-12-20 22:05:53.403585485 +0100 @@ -38,132 +38,6 @@ #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) void swap(mpq_class& x, mpq_class& y); -namespace std { - -#ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS -//! Specialization of std::numeric_limits. -#endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) -template <> -class numeric_limits { -private: - typedef mpz_class Type; - -public: - static const bool is_specialized = true; - static const int digits = 0; - static const int digits10 = 0; - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - static const int radix = 2; - static const int min_exponent = 0; - static const int min_exponent10 = 0; - static const int max_exponent = 0; - static const int max_exponent10 = 0; - static const bool has_infinity = false; - static const bool has_quiet_NaN = false; - static const bool has_signaling_NaN = false; - static const float_denorm_style has_denorm = denorm_absent; - static const bool has_denorm_loss = false; - static const bool is_iec559 = false; - static const bool is_bounded = false; - static const bool is_modulo = false; - static const bool traps = false; - static const bool tininess_before = false; - static const float_round_style round_style = round_toward_zero; - - static Type min() { - return static_cast(0); - } - - static Type max() { - return static_cast(0); - } - - static Type epsilon() { - return static_cast(0); - } - - static Type round_error() { - return static_cast(0); - } - - static Type infinity() { - return static_cast(0); - } - - static Type quiet_NaN() { - return static_cast(0); - } - - static Type denorm_min() { - return static_cast(1); - } -}; - -#ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS -//! Specialization of std::numeric_limits. -#endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) -template <> -class numeric_limits { -private: - typedef mpq_class Type; - -public: - static const bool is_specialized = true; - static const int digits = 0; - static const int digits10 = 0; - static const bool is_signed = true; - static const bool is_integer = false; - static const bool is_exact = true; - static const int radix = 2; - static const int min_exponent = 0; - static const int min_exponent10 = 0; - static const int max_exponent = 0; - static const int max_exponent10 = 0; - static const bool has_infinity = false; - static const bool has_quiet_NaN = false; - static const bool has_signaling_NaN = false; - static const float_denorm_style has_denorm = denorm_absent; - static const bool has_denorm_loss = false; - static const bool is_iec559 = false; - static const bool is_bounded = false; - static const bool is_modulo = false; - static const bool traps = false; - static const bool tininess_before = false; - static const float_round_style round_style = round_toward_zero; - - static Type min() { - return static_cast(0); - } - - static Type max() { - return static_cast(0); - } - - static Type epsilon() { - return static_cast(0); - } - - static Type round_error() { - return static_cast(0); - } - - static Type infinity() { - return static_cast(0); - } - - static Type quiet_NaN() { - return static_cast(0); - } - - static Type denorm_min() { - return static_cast(0); - } -}; - -} // namespace std - #include "mp_std_bits.inlines.hh" #endif // !defined(PPL_mp_std_bits_defs_hh)