|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77088 - sandbox/big_number/boost/multiprecision
From: john_at_[hidden]
Date: 2012-02-21 13:19:04
Author: johnmaddock
Date: 2012-02-21 13:19:02 EST (Tue, 21 Feb 2012)
New Revision: 77088
URL: http://svn.boost.org/trac/boost/changeset/77088
Log:
Fix some C++0x errors.
Text files modified:
sandbox/big_number/boost/multiprecision/gmp.hpp | 54 ++++++++++++++++++++--------------------
sandbox/big_number/boost/multiprecision/tommath.hpp | 18 ++++++------
2 files changed, 36 insertions(+), 36 deletions(-)
Modified: sandbox/big_number/boost/multiprecision/gmp.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/gmp.hpp (original)
+++ sandbox/big_number/boost/multiprecision/gmp.hpp 2012-02-21 13:19:02 EST (Tue, 21 Feb 2012)
@@ -1926,9 +1926,9 @@
typedef boost::multiprecision::mp_number<boost::multiprecision::gmp_float<0> > number_type;
public:
BOOST_STATIC_CONSTEXPR bool is_specialized = false;
- BOOST_STATIC_CONSTEXPR number_type (min)() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type (max)() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type lowest() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type (min)() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type (max)() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type lowest() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR int digits = 0;
BOOST_STATIC_CONSTEXPR int digits10 = 0;
BOOST_STATIC_CONSTEXPR int max_digits10 = 0;
@@ -1936,8 +1936,8 @@
BOOST_STATIC_CONSTEXPR bool is_integer = false;
BOOST_STATIC_CONSTEXPR bool is_exact = false;
BOOST_STATIC_CONSTEXPR int radix = 0;
- BOOST_STATIC_CONSTEXPR number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR int min_exponent = 0;
BOOST_STATIC_CONSTEXPR int min_exponent10 = 0;
BOOST_STATIC_CONSTEXPR int max_exponent = 0;
@@ -1947,10 +1947,10 @@
BOOST_STATIC_CONSTEXPR bool has_signaling_NaN = false;
BOOST_STATIC_CONSTEXPR float_denorm_style has_denorm = denorm_absent;
BOOST_STATIC_CONSTEXPR bool has_denorm_loss = false;
- BOOST_STATIC_CONSTEXPR number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR bool is_iec559 = false;
BOOST_STATIC_CONSTEXPR bool is_bounded = false;
BOOST_STATIC_CONSTEXPR bool is_modulo = false;
@@ -1969,15 +1969,15 @@
// Largest and smallest numbers are bounded only by available memory, set
// to zero:
//
- BOOST_STATIC_CONSTEXPR number_type (min)() BOOST_MP_NOEXCEPT
+ static number_type (min)() BOOST_MP_NOEXCEPT
{
return number_type();
}
- BOOST_STATIC_CONSTEXPR number_type (max)() BOOST_MP_NOEXCEPT
+ static number_type (max)() BOOST_MP_NOEXCEPT
{
return number_type();
}
- BOOST_STATIC_CONSTEXPR number_type lowest() BOOST_MP_NOEXCEPT { return (min)(); }
+ static number_type lowest() BOOST_MP_NOEXCEPT { return (min)(); }
BOOST_STATIC_CONSTEXPR int digits = INT_MAX;
BOOST_STATIC_CONSTEXPR int digits10 = (INT_MAX / 1000) * 301L;
BOOST_STATIC_CONSTEXPR int max_digits10 = digits10 + 2;
@@ -1985,8 +1985,8 @@
BOOST_STATIC_CONSTEXPR bool is_integer = true;
BOOST_STATIC_CONSTEXPR bool is_exact = true;
BOOST_STATIC_CONSTEXPR int radix = 2;
- BOOST_STATIC_CONSTEXPR number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR int min_exponent = 0;
BOOST_STATIC_CONSTEXPR int min_exponent10 = 0;
BOOST_STATIC_CONSTEXPR int max_exponent = 0;
@@ -1996,10 +1996,10 @@
BOOST_STATIC_CONSTEXPR bool has_signaling_NaN = false;
BOOST_STATIC_CONSTEXPR float_denorm_style has_denorm = denorm_absent;
BOOST_STATIC_CONSTEXPR bool has_denorm_loss = false;
- BOOST_STATIC_CONSTEXPR number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR bool is_iec559 = false;
BOOST_STATIC_CONSTEXPR bool is_bounded = false;
BOOST_STATIC_CONSTEXPR bool is_modulo = false;
@@ -2018,15 +2018,15 @@
// Largest and smallest numbers are bounded only by available memory, set
// to zero:
//
- BOOST_STATIC_CONSTEXPR number_type (min)() BOOST_MP_NOEXCEPT
+ static number_type (min)() BOOST_MP_NOEXCEPT
{
return number_type();
}
- BOOST_STATIC_CONSTEXPR number_type (max)() BOOST_MP_NOEXCEPT
+ static number_type (max)() BOOST_MP_NOEXCEPT
{
return number_type();
}
- BOOST_STATIC_CONSTEXPR number_type lowest() BOOST_MP_NOEXCEPT { return (min)(); }
+ static number_type lowest() BOOST_MP_NOEXCEPT { return (min)(); }
// Digits are unbounded, use zero for now:
BOOST_STATIC_CONSTEXPR int digits = 0;
BOOST_STATIC_CONSTEXPR int digits10 = 0;
@@ -2035,8 +2035,8 @@
BOOST_STATIC_CONSTEXPR bool is_integer = false;
BOOST_STATIC_CONSTEXPR bool is_exact = true;
BOOST_STATIC_CONSTEXPR int radix = 2;
- BOOST_STATIC_CONSTEXPR number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR int min_exponent = 0;
BOOST_STATIC_CONSTEXPR int min_exponent10 = 0;
BOOST_STATIC_CONSTEXPR int max_exponent = 0;
@@ -2046,10 +2046,10 @@
BOOST_STATIC_CONSTEXPR bool has_signaling_NaN = false;
BOOST_STATIC_CONSTEXPR float_denorm_style has_denorm = denorm_absent;
BOOST_STATIC_CONSTEXPR bool has_denorm_loss = false;
- BOOST_STATIC_CONSTEXPR number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR bool is_iec559 = false;
BOOST_STATIC_CONSTEXPR bool is_bounded = false;
BOOST_STATIC_CONSTEXPR bool is_modulo = false;
Modified: sandbox/big_number/boost/multiprecision/tommath.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/tommath.hpp (original)
+++ sandbox/big_number/boost/multiprecision/tommath.hpp 2012-02-21 13:19:02 EST (Tue, 21 Feb 2012)
@@ -463,15 +463,15 @@
// Largest and smallest numbers are bounded only by available memory, set
// to zero:
//
- BOOST_STATIC_CONSTEXPR number_type (min)() BOOST_MP_NOEXCEPT
+ static number_type (min)() BOOST_MP_NOEXCEPT
{
return number_type();
}
- BOOST_STATIC_CONSTEXPR number_type (max)() BOOST_MP_NOEXCEPT
+ static number_type (max)() BOOST_MP_NOEXCEPT
{
return number_type();
}
- BOOST_STATIC_CONSTEXPR number_type lowest() BOOST_MP_NOEXCEPT { return (min)(); }
+ static number_type lowest() BOOST_MP_NOEXCEPT { return (min)(); }
BOOST_STATIC_CONSTEXPR int digits = INT_MAX;
BOOST_STATIC_CONSTEXPR int digits10 = (INT_MAX / 1000) * 301L;
BOOST_STATIC_CONSTEXPR int max_digits10 = digits10 + 2;
@@ -479,8 +479,8 @@
BOOST_STATIC_CONSTEXPR bool is_integer = true;
BOOST_STATIC_CONSTEXPR bool is_exact = true;
BOOST_STATIC_CONSTEXPR int radix = 2;
- BOOST_STATIC_CONSTEXPR number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type epsilon() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type round_error() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR int min_exponent = 0;
BOOST_STATIC_CONSTEXPR int min_exponent10 = 0;
BOOST_STATIC_CONSTEXPR int max_exponent = 0;
@@ -490,10 +490,10 @@
BOOST_STATIC_CONSTEXPR bool has_signaling_NaN = false;
BOOST_STATIC_CONSTEXPR float_denorm_style has_denorm = denorm_absent;
BOOST_STATIC_CONSTEXPR bool has_denorm_loss = false;
- BOOST_STATIC_CONSTEXPR number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
- BOOST_STATIC_CONSTEXPR number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type infinity() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type quiet_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type signaling_NaN() BOOST_MP_NOEXCEPT { return number_type(); }
+ static number_type denorm_min() BOOST_MP_NOEXCEPT { return number_type(); }
BOOST_STATIC_CONSTEXPR bool is_iec559 = false;
BOOST_STATIC_CONSTEXPR bool is_bounded = false;
BOOST_STATIC_CONSTEXPR bool is_modulo = false;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk