forked from mpusz/mp-units
21 lines
379 B
ERB
21 lines
379 B
ERB
#include "std_ratio.h"
|
|
|
|
#if defined(METABENCH)
|
|
<% (1..n).each do |i| %>
|
|
struct test<%= i %> {
|
|
using r1 = std::ratio<<%= i %>, <%= n + 1 - i %>>;
|
|
using r2 = std::ratio<<%= n + 1 - i %>, <%= i %>>;
|
|
|
|
using r3 = std::ratio_multiply<r1, r2>;
|
|
using r4 = std::ratio_divide<r1, r2>;
|
|
|
|
using r5 = units::common_ratio_t<r1, r2>;
|
|
};
|
|
<% end %>
|
|
#endif
|
|
|
|
|
|
int main()
|
|
{
|
|
}
|