#include "std_ratio.h" <% (1..n).each do |i| %> struct test<%= i %> { using r1 = std::ratio<<%= i %>, <%= n + 1 - i %>>; using r2 = std::ratio<<%= n + 1 - i %>, <%= i %>>; #if defined(METABENCH) using r3 = std::ratio_multiply; using r4 = std::ratio_divide; #endif }; <% end %> int main() { }