| 1100 | template <class Ratio> struct ratio_string { static std::string symbol(); }; |
| 1101 | |
| 1102 | template <class Ratio> std::string ratio_string<Ratio>::symbol() { |
| 1103 | Catch::ReusableStringStream rss; |
| 1104 | rss << '[' << Ratio::num << '/' << Ratio::den << ']'; |
| 1105 | return rss.str(); |
| 1106 | } |
| 1107 | template <> struct ratio_string<std::atto> { static std::string symbol(); }; |
| 1108 | template <> struct ratio_string<std::femto> { static std::string symbol(); }; |
| 1109 | template <> struct ratio_string<std::pico> { static std::string symbol(); }; |