Files
mp-units/test/metabench/ratio/common_ratio_std_ratio.cpp.erb
T

19 lines
323 B
ERB
Raw Normal View History

2019-05-17 22:41:46 +02:00
#include "std_ratio.h"
<% (1..n).each do |i| %>
struct test<%= i %> {
2019-09-15 19:06:46 +02:00
using r1 = std::ratio<<%= 2 * i - 1 %>, <%= 2 * n %>>;
using r2 = std::ratio<<%= 2 * i %>, <%= 2 * n %>>;
2019-05-17 22:41:46 +02:00
#if defined(METABENCH)
using r3 = units::common_ratio_t<r1, r2>;
2019-09-15 19:06:46 +02:00
#else
using r3 = void;
#endif
2019-05-17 22:41:46 +02:00
};
<% end %>
int main()
{
}