1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 // Adaptation to Boost of the libcxx
10 // Copyright 2010 Vicente J. Botet Escriba
11 // Distributed under the Boost Software License, Version 1.0.
12 // See http://www.boost.org/LICENSE_1_0.txt
14 #define BOOST_RATIO_EXTENSIONS
16 #include <boost/ratio/mpl/greater_equal.hpp>
17 #if !defined(BOOST_NO_CXX11_STATIC_ASSERT)
25 typedef boost::ratio<1, 1> R1;
26 typedef boost::ratio<1, 1> R2;
27 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
30 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1;
31 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R2;
32 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
35 typedef boost::ratio<1,BOOST_RATIO_INTMAX_T_MAX> R1;
36 typedef boost::ratio<1,BOOST_RATIO_INTMAX_T_MAX> R2;
37 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
40 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1;
41 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R2;
42 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
45 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1;
46 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R2;
47 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
50 typedef boost::ratio<1, 1> R1;
51 typedef boost::ratio<1, -1> R2;
52 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
55 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R1;
56 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R2;
57 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
60 typedef boost::ratio<-BOOST_RATIO_INTMAX_T_MAX, 1> R1;
61 typedef boost::ratio<BOOST_RATIO_INTMAX_T_MAX, 1> R2;
62 BOOST_RATIO_STATIC_ASSERT((!boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());
65 typedef boost::ratio<1, BOOST_RATIO_INTMAX_T_MAX> R1;
66 typedef boost::ratio<1, -BOOST_RATIO_INTMAX_T_MAX> R2;
67 BOOST_RATIO_STATIC_ASSERT((boost::mpl::greater_equal<R1, R2>::value), NOTHING, ());