Files

22 lines
378 B
ERB
Raw Permalink Normal View History

2019-09-15 19:06:46 +02:00
#include <ratio>
2019-07-24 11:58:15 +02:00
2019-05-17 22:41:46 +02:00
<% (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)
2019-05-17 22:41:46 +02:00
using r3 = std::ratio_multiply<r1, r2>;
using r4 = std::ratio_divide<r1, r2>;
2019-09-15 19:06:46 +02:00
#else
using r3 = void;
using r4 = void;
#endif
2019-05-17 22:41:46 +02:00
};
<% end %>
int main()
{
}