Author: Kazu Hirata Date: 2023-10-03T21:25:29-07:00 New Revision: 8641cdf397d86f33ac45e4c691ca4f843c359370
URL: https://github.com/llvm/llvm-project/commit/8641cdf397d86f33ac45e4c691ca4f843c359370 DIFF: https://github.com/llvm/llvm-project/commit/8641cdf397d86f33ac45e4c691ca4f843c359370.diff LOG: [lldb] Use std::enable_if_t (NFC) Added: Modified: lldb/include/lldb/Utility/Instrumentation.h Removed: ################################################################################ diff --git a/lldb/include/lldb/Utility/Instrumentation.h b/lldb/include/lldb/Utility/Instrumentation.h index 13ffc0bd39d0b61..4a9ac810eb05e99 100644 --- a/lldb/include/lldb/Utility/Instrumentation.h +++ b/lldb/include/lldb/Utility/Instrumentation.h @@ -21,14 +21,12 @@ namespace lldb_private { namespace instrumentation { -template <typename T, - typename std::enable_if<std::is_fundamental<T>::value, int>::type = 0> +template <typename T, std::enable_if_t<std::is_fundamental<T>::value, int> = 0> inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) { ss << t; } -template <typename T, typename std::enable_if<!std::is_fundamental<T>::value, - int>::type = 0> +template <typename T, std::enable_if_t<!std::is_fundamental<T>::value, int> = 0> inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) { ss << &t; } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits