mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Simplify how ratio symbol is returned when stringifying ratios
This commit is contained in:
parent
d65ee04b74
commit
48a889859b
@ -558,27 +558,27 @@ struct ratio_string {
|
|||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct ratio_string<std::atto> {
|
struct ratio_string<std::atto> {
|
||||||
static std::string symbol() { return "a"; }
|
static char symbol() { return 'a'; }
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
struct ratio_string<std::femto> {
|
struct ratio_string<std::femto> {
|
||||||
static std::string symbol() { return "f"; }
|
static char symbol() { return 'f'; }
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
struct ratio_string<std::pico> {
|
struct ratio_string<std::pico> {
|
||||||
static std::string symbol() { return "p"; }
|
static char symbol() { return 'p'; }
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
struct ratio_string<std::nano> {
|
struct ratio_string<std::nano> {
|
||||||
static std::string symbol() { return "n"; }
|
static char symbol() { return 'n'; }
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
struct ratio_string<std::micro> {
|
struct ratio_string<std::micro> {
|
||||||
static std::string symbol() { return "u"; }
|
static char symbol() { return 'u'; }
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
struct ratio_string<std::milli> {
|
struct ratio_string<std::milli> {
|
||||||
static std::string symbol() { return "m"; }
|
static char symbol() { return 'm'; }
|
||||||
};
|
};
|
||||||
|
|
||||||
////////////
|
////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user