Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81467 - in trunk/boost/multiprecision: . detail
From: marshall_at_[hidden]
Date: 2012-11-21 16:32:27


Author: marshall
Date: 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
New Revision: 81467
URL: http://svn.boost.org/trac/boost/changeset/81467

Log:
Remove usage of deprecated macros
Text files modified:
   trunk/boost/multiprecision/cpp_int.hpp | 6 +++---
   trunk/boost/multiprecision/detail/no_et_ops.hpp | 2 +-
   trunk/boost/multiprecision/detail/number_base.hpp | 4 ++--
   trunk/boost/multiprecision/gmp.hpp | 20 ++++++++++----------
   trunk/boost/multiprecision/mpfr.hpp | 12 ++++++------
   trunk/boost/multiprecision/number.hpp | 2 +-
   trunk/boost/multiprecision/rational_adapter.hpp | 2 +-
   trunk/boost/multiprecision/tommath.hpp | 2 +-
   8 files changed, 25 insertions(+), 25 deletions(-)

Modified: trunk/boost/multiprecision/cpp_int.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int.hpp (original)
+++ trunk/boost/multiprecision/cpp_int.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -275,7 +275,7 @@
       std::copy(o.limbs(), o.limbs() + o.size(), limbs());
       m_sign = o.m_sign;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    cpp_int_base(cpp_int_base&& o)
       : allocator_type(static_cast<Allocator&&>(o)), m_limbs(o.m_limbs), m_sign(o.m_sign), m_internal(o.m_internal)
    {
@@ -963,7 +963,7 @@
 
    BOOST_FORCEINLINE BOOST_CONSTEXPR cpp_int_backend() BOOST_NOEXCEPT{}
    BOOST_FORCEINLINE BOOST_CONSTEXPR cpp_int_backend(const cpp_int_backend& o) BOOST_NOEXCEPT_IF(boost::is_void<Allocator>::value) : base_type(o) {}
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    BOOST_FORCEINLINE BOOST_CONSTEXPR cpp_int_backend(cpp_int_backend&& o) BOOST_NOEXCEPT
       : base_type(static_cast<base_type&&>(o)) {}
 #endif
@@ -1174,7 +1174,7 @@
       this->assign(o);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    BOOST_FORCEINLINE cpp_int_backend& operator = (cpp_int_backend&& o) BOOST_NOEXCEPT_IF(boost::is_void<Allocator>::value)
    {
       *static_cast<base_type*>(this) = static_cast<base_type&&>(o);

Modified: trunk/boost/multiprecision/detail/no_et_ops.hpp
==============================================================================
--- trunk/boost/multiprecision/detail/no_et_ops.hpp (original)
+++ trunk/boost/multiprecision/detail/no_et_ops.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -285,7 +285,7 @@
    return BOOST_MP_MOVE(result);
 }
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 //
 // If we have rvalue references go all over again with rvalue ref overloads and move semantics.
 // Note that while it would be tempting to implement these so they return an rvalue reference

Modified: trunk/boost/multiprecision/detail/number_base.hpp
==============================================================================
--- trunk/boost/multiprecision/detail/number_base.hpp (original)
+++ trunk/boost/multiprecision/detail/number_base.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -84,7 +84,7 @@
 //
 // Move support:
 //
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 # define BOOST_MP_MOVE(x) std::move(x)
 #else
 # define BOOST_MP_MOVE(x) x
@@ -230,7 +230,7 @@
 template <class T1, class T2>
 struct combine_expression
 {
-#ifdef BOOST_NO_DECLTYPE
+#ifdef BOOST_NO_CXX11_DECLTYPE
    typedef typename mpl::if_c<(sizeof(T1() + T2()) == sizeof(T1)), T1, T2>::type type;
 #else
    typedef decltype(T1() + T2()) type;

Modified: trunk/boost/multiprecision/gmp.hpp
==============================================================================
--- trunk/boost/multiprecision/gmp.hpp (original)
+++ trunk/boost/multiprecision/gmp.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -78,7 +78,7 @@
       if(o.m_data[0]._mp_d)
          mpf_set(m_data, o.m_data);
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_float_imp(gmp_float_imp&& o) BOOST_NOEXCEPT
    {
       m_data[0] = o.m_data[0];
@@ -93,7 +93,7 @@
          mpf_set(m_data, o.m_data);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_float_imp& operator = (gmp_float_imp&& o) BOOST_NOEXCEPT
    {
       mpf_swap(m_data, o.m_data);
@@ -396,7 +396,7 @@
       mpf_init2(this->m_data, multiprecision::detail::digits10_2_2(digits10));
       mpf_set_q(this->m_data, val);
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_float(gmp_float&& o) BOOST_NOEXCEPT : detail::gmp_float_imp<digits10>(static_cast<detail::gmp_float_imp<digits10>&&>(o)) {}
 #endif
    gmp_float& operator=(const gmp_float& o)
@@ -404,7 +404,7 @@
       *static_cast<detail::gmp_float_imp<digits10>*>(this) = static_cast<detail::gmp_float_imp<digits10> const&>(o);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_float& operator=(gmp_float&& o) BOOST_NOEXCEPT
    {
       *static_cast<detail::gmp_float_imp<digits10>*>(this) = static_cast<detail::gmp_float_imp<digits10>&&>(o);
@@ -473,7 +473,7 @@
       mpf_init2(this->m_data, mpf_get_prec(o.data()));
       mpf_set(this->m_data, o.data());
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_float(gmp_float&& o) BOOST_NOEXCEPT : detail::gmp_float_imp<0>(static_cast<detail::gmp_float_imp<0>&&>(o)) {}
 #endif
    gmp_float(const gmp_int& o);
@@ -489,7 +489,7 @@
       *static_cast<detail::gmp_float_imp<0>*>(this) = static_cast<detail::gmp_float_imp<0> const&>(o);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_float& operator=(gmp_float&& o) BOOST_NOEXCEPT
    {
       *static_cast<detail::gmp_float_imp<0>*>(this) = static_cast<detail::gmp_float_imp<0> &&>(o);
@@ -985,7 +985,7 @@
       else
          mpz_init(this->m_data);
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_int(gmp_int&& o) BOOST_NOEXCEPT
    {
       m_data[0] = o.m_data[0];
@@ -1019,7 +1019,7 @@
          mpz_set(m_data, o.m_data);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_int& operator = (gmp_int&& o) BOOST_NOEXCEPT
    {
       mpz_swap(m_data, o.m_data);
@@ -1708,7 +1708,7 @@
       mpq_init(m_data);
       mpq_set_z(m_data, o.data());
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_rational(gmp_rational&& o) BOOST_NOEXCEPT
    {
       m_data[0]._mp_num = o.data()[0]._mp_num;
@@ -1733,7 +1733,7 @@
          mpq_set(m_data, o.m_data);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    gmp_rational& operator = (gmp_rational&& o) BOOST_NOEXCEPT
    {
       mpq_swap(m_data, o.m_data);

Modified: trunk/boost/multiprecision/mpfr.hpp
==============================================================================
--- trunk/boost/multiprecision/mpfr.hpp (original)
+++ trunk/boost/multiprecision/mpfr.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -67,7 +67,7 @@
       if(o.m_data[0]._mpfr_d)
          mpfr_set(m_data, o.m_data, GMP_RNDN);
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    mpfr_float_imp(mpfr_float_imp&& o) BOOST_NOEXCEPT
    {
       m_data[0] = o.m_data[0];
@@ -82,7 +82,7 @@
          mpfr_set(m_data, o.m_data, GMP_RNDN);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    mpfr_float_imp& operator = (mpfr_float_imp&& o) BOOST_NOEXCEPT
    {
       mpfr_swap(m_data, o.m_data);
@@ -604,7 +604,7 @@
 {
    mpfr_float_backend() : detail::mpfr_float_imp<digits10, AllocationType>() {}
    mpfr_float_backend(const mpfr_float_backend& o) : detail::mpfr_float_imp<digits10, AllocationType>(o) {}
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    mpfr_float_backend(mpfr_float_backend&& o) : detail::mpfr_float_imp<digits10, AllocationType>(static_cast<detail::mpfr_float_imp<digits10, AllocationType>&&>(o)) {}
 #endif
    template <unsigned D, mpfr_allocation_type AT>
@@ -666,7 +666,7 @@
       *static_cast<detail::mpfr_float_imp<digits10, AllocationType>*>(this) = static_cast<detail::mpfr_float_imp<digits10, AllocationType> const&>(o);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    mpfr_float_backend& operator=(mpfr_float_backend&& o) BOOST_NOEXCEPT
    {
       *static_cast<detail::mpfr_float_imp<digits10, AllocationType>*>(this) = static_cast<detail::mpfr_float_imp<digits10, AllocationType>&&>(o);
@@ -749,7 +749,7 @@
       mpfr_set_q(this->m_data, val, GMP_RNDN);
    }
    mpfr_float_backend(const mpfr_float_backend& o) : detail::mpfr_float_imp<0, allocate_dynamic>(o) {}
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    mpfr_float_backend(mpfr_float_backend&& o) BOOST_NOEXCEPT : detail::mpfr_float_imp<0, allocate_dynamic>(static_cast<detail::mpfr_float_imp<0, allocate_dynamic>&&>(o)) {}
 #endif
    mpfr_float_backend(const mpfr_float_backend& o, unsigned digits10)
@@ -786,7 +786,7 @@
       mpfr_set(this->m_data, o.data(), GMP_RNDN);
       return *this;
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    mpfr_float_backend& operator=(mpfr_float_backend&& o) BOOST_NOEXCEPT
    {
       *static_cast<detail::mpfr_float_imp<0, allocate_dynamic>*>(this) = static_cast<detail::mpfr_float_imp<0, allocate_dynamic> &&>(o);

Modified: trunk/boost/multiprecision/number.hpp
==============================================================================
--- trunk/boost/multiprecision/number.hpp (original)
+++ trunk/boost/multiprecision/number.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -184,7 +184,7 @@
       assign(e);
    }
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    BOOST_FORCEINLINE BOOST_CONSTEXPR number(number&& r) BOOST_NOEXCEPT : m_backend(static_cast<Backend&&>(r.m_backend)){}
    BOOST_FORCEINLINE number& operator=(number&& r) BOOST_NOEXCEPT
    {

Modified: trunk/boost/multiprecision/rational_adapter.hpp
==============================================================================
--- trunk/boost/multiprecision/rational_adapter.hpp (original)
+++ trunk/boost/multiprecision/rational_adapter.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -56,7 +56,7 @@
       m_value = IntBackend(u);
    }
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    rational_adapter(rational_adapter&& o) : m_value(o.m_value) {}
    rational_adapter(IntBackend&& o) : m_value(o) {}
    rational_adapter& operator = (rational_adapter&& o)

Modified: trunk/boost/multiprecision/tommath.hpp
==============================================================================
--- trunk/boost/multiprecision/tommath.hpp (original)
+++ trunk/boost/multiprecision/tommath.hpp 2012-11-21 16:32:26 EST (Wed, 21 Nov 2012)
@@ -50,7 +50,7 @@
    {
       detail::check_tommath_result(mp_init_copy(&m_data, const_cast< ::mp_int*>(&o.m_data)));
    }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    tommath_int(tommath_int&& o) BOOST_NOEXCEPT
    {
       m_data = o.m_data;


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