2
0
mirror of https://github.com/boostorg/ratio.git synced 2026-01-19 16:52:07 +00:00
Files
ratio/test/quick.cpp
2023-01-06 21:14:33 +02:00

15 lines
353 B
C++

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