|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84777 - trunk/boost/multiprecision
From: john_at_[hidden]
Date: 2013-06-14 08:42:37
Author: johnmaddock
Date: 2013-06-14 08:42:36 EDT (Fri, 14 Jun 2013)
New Revision: 84777
URL: http://svn.boost.org/trac/boost/changeset/84777
Log:
Add some noexcept specs to gmp_int.
Text files modified:
trunk/boost/multiprecision/gmp.hpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
Modified: trunk/boost/multiprecision/gmp.hpp
==============================================================================
--- trunk/boost/multiprecision/gmp.hpp Fri Jun 14 04:30:28 2013 (r84776)
+++ trunk/boost/multiprecision/gmp.hpp 2013-06-14 08:42:36 EDT (Fri, 14 Jun 2013) (r84777)
@@ -1225,27 +1225,27 @@
return s;
}
- ~gmp_int()
+ ~gmp_int() BOOST_NOEXCEPT
{
if(m_data[0]._mp_d)
mpz_clear(m_data);
}
- void negate()
+ void negate() BOOST_NOEXCEPT
{
BOOST_ASSERT(m_data[0]._mp_d);
mpz_neg(m_data, m_data);
}
- int compare(const gmp_int& o)const
+ int compare(const gmp_int& o)const BOOST_NOEXCEPT
{
BOOST_ASSERT(m_data[0]._mp_d && o.m_data[0]._mp_d);
return mpz_cmp(m_data, o.m_data);
}
- int compare(long i)const
+ int compare(long i)const BOOST_NOEXCEPT
{
BOOST_ASSERT(m_data[0]._mp_d);
return mpz_cmp_si(m_data, i);
}
- int compare(unsigned long i)const
+ int compare(unsigned long i)const BOOST_NOEXCEPT
{
BOOST_ASSERT(m_data[0]._mp_d);
return mpz_cmp_ui(m_data, i);
@@ -1257,12 +1257,12 @@
d = v;
return compare(d);
}
- mpz_t& data()
+ mpz_t& data() BOOST_NOEXCEPT
{
BOOST_ASSERT(m_data[0]._mp_d);
return m_data;
}
- const mpz_t& data()const
+ const mpz_t& data()const BOOST_NOEXCEPT
{
BOOST_ASSERT(m_data[0]._mp_d);
return 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