mirror of
https://github.com/boostorg/ratio.git
synced 2025-05-09 23:24:01 +00:00
Boost.Ratio: Force failure to debug condition
[SVN r68029]
This commit is contained in:
parent
5bdc315584
commit
3f83ec3266
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user