Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/debug_utils-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct ToStringHelper {
static std::string Convert(bool value) { return value ? "true" : "false"; }
template <unsigned BASE_BITS,
typename T,
typename std::enable_if<std::is_integral<T>::value, int>::type = 0>
typename = std::enable_if_t<std::is_integral_v<T>>>
static std::string BaseConvert(const T& value) {
auto v = static_cast<uint64_t>(value);
char ret[3 * sizeof(T)];
Expand All @@ -45,7 +45,7 @@ struct ToStringHelper {
}
template <unsigned BASE_BITS,
typename T,
typename std::enable_if<!std::is_integral<T>::value, int>::type = 0>
typename = std::enable_if_t<!std::is_integral_v<T>>>
static std::string BaseConvert(T value) {
return Convert(std::forward<T>(value));
}
Expand Down