Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82610 - trunk/boost/multiprecision
From: john_at_[hidden]
Date: 2013-01-25 12:45:03


Author: johnmaddock
Date: 2013-01-25 12:45:03 EST (Fri, 25 Jan 2013)
New Revision: 82610
URL: http://svn.boost.org/trac/boost/changeset/82610

Log:
Reorder static assertions for better error messages.
Text files modified:
   trunk/boost/multiprecision/cpp_dec_float.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/multiprecision/cpp_dec_float.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_dec_float.hpp (original)
+++ trunk/boost/multiprecision/cpp_dec_float.hpp 2013-01-25 12:45:03 EST (Fri, 25 Jan 2013)
@@ -74,8 +74,8 @@
    static const boost::int32_t cpp_dec_float_digits10_setting = Digits10;
 
    // We need at least 16-bits in the exponent type to do anything sensible:
- BOOST_STATIC_ASSERT_MSG(sizeof(ExponentType) > 1, "ExponentType is too small.");
    BOOST_STATIC_ASSERT_MSG(boost::is_signed<ExponentType>::value, "ExponentType must be a signed built in integer type.");
+ BOOST_STATIC_ASSERT_MSG(sizeof(ExponentType) > 1, "ExponentType is too small.");
 
 public:
    typedef mpl::list<long long> signed_types;


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