1// Copyright 2023 Peter Dimov
2// Distributed under the Boost Software License, Version 1.0.
3// https://www.boost.org/LICENSE_1_0.txt
4
5#include <boost/ratio/ratio.hpp>
6
7int main()
8{
9 typedef boost::ratio<5, 2> R1;
10 typedef boost::ratio<2, 7> R2;
11 typedef boost::ratio_multiply<R1, R2>::type R3;
12
13 return R3::num == 5 && R3::den == 7? 0: 1;
14}
15

source code of boost/libs/ratio/test/quick.cpp