| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ struct ToStringHelper { | |||
| 29 | 29 | static std::string Convert(bool value) { return value ? "true" : "false"; } | |
| 30 | 30 | template <unsigned BASE_BITS, | |
| 31 | 31 | typename T, | |
| 32 | - typename std::enable_if<std::is_integral<T>::value, int>::type = 0> | ||
| 32 | + typename = std::enable_if_t<std::is_integral_v<T>>> | ||
| 33 | 33 | static std::string BaseConvert(const T& value) { | |
| 34 | 34 | auto v = static_cast<uint64_t>(value); | |
| 35 | 35 | char ret[3 * sizeof(T)]; | |
@@ -45,7 +45,7 @@ struct ToStringHelper { | |||
| 45 | 45 | } | |
| 46 | 46 | template <unsigned BASE_BITS, | |
| 47 | 47 | typename T, | |
| 48 | - typename std::enable_if<!std::is_integral<T>::value, int>::type = 0> | ||
| 48 | + typename = std::enable_if_t<!std::is_integral_v<T>>> | ||
| 49 | 49 | static std::string BaseConvert(T value) { | |
| 50 | 50 | return Convert(std::forward<T>(value)); | |
| 51 | 51 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments