Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68066 - trunk/libs/ratio/test/ratio_arithmetic
From: vicente.botet_at_[hidden]
Date: 2011-01-12 13:14:09


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

Log:
Boost.Ratio: Force failure to debug condition

Text files modified:
   trunk/libs/ratio/test/ratio_arithmetic/ratio_add_fail.cpp | 3 ++-
   1 files changed, 2 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 13:14:08 EST (Wed, 12 Jan 2011)
@@ -24,4 +24,5 @@
 typedef boost::ratio<1, 1> R2;
 typedef boost::ratio_add<R1, R2>::type RT;
 
-BOOST_RATIO_STATIC_ASSERT(RT::num==0, NOTHING, (RT));
+BOOST_RATIO_STATIC_ASSERT(RT::num==BOOST_RATIO_INTMAX_T_MAX+1, NOTHING, (RT));
+BOOST_RATIO_STATIC_ASSERT(RT::den==1, 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