Boost.Ratio: Force failure to debug condition

[SVN r68029]
This commit is contained in:
Vicente J. Botet Escriba 2011-01-12 05:05:08 +00:00
parent 5bdc315584
commit 3f83ec3266

View File

@ -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));