Commit c5413a1 1 parent 11452a9 commit c5413a1 Copy full SHA for c5413a1
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed 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
}
You can’t perform that action at this time.
0 commit comments