Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68029 - trunk/libs/ratio/test/ratio_arithmetic
From: vicente.botet_at_[hidden]
Date: 2011-01-12 00:05:08


Author: viboes
Date: 2011-01-12 00:05:08 EST (Wed, 12 Jan 2011)
New Revision: 68029
URL: http://svn.boost.org/trac/boost/changeset/68029

Log:
Boost.Ratio: Force failure to debug condition

Text files modified:
   trunk/libs/ratio/test/ratio_arithmetic/ratio_add_fail.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/ratio/test/ratio_arithmetic/ratio_add_fail.cpp
==============================================================================
--- trunk/libs/ratio/test/ratio_arithmetic/ratio_add_fail.cpp (original)
+++ trunk/libs/ratio/test/ratio_arithmetic/ratio_add_fail.cpp 2011-01-12 00:05:08 EST (Wed, 12 Jan 2011)
@@ -14,10 +14,14 @@
 #include <boost/ratio.hpp>
 #include <boost/integer_traits.hpp>
 
+#if !defined(BOOST_NO_STATIC_ASSERT)
+#define NOTHING ""
+#endif
+
 #define BOOST_RATIO_INTMAX_T_MAX boost::integer_traits<boost::intmax_t>::const_max
 
 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1;
 typedef boost::ratio<1, 1> R2;
 typedef boost::ratio_add<R1, R2>::type RT;
 
-BOOST_RATIO_STATIC_ASSERT(RT::num==0, (RT));
+BOOST_RATIO_STATIC_ASSERT(RT::num==0, NOTHING, (RT));


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