Skip to content

Commit 8641cdf

Browse files
[lldb] Use std::enable_if_t (NFC)
1 parent 548d67a commit 8641cdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lldb/include/lldb/Utility/Instrumentation.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
namespace lldb_private {
2222
namespace instrumentation {
2323

24-
template <typename T,
25-
typename std::enable_if<std::is_fundamental<T>::value, int>::type = 0>
24+
template <typename T, std::enable_if_t<std::is_fundamental<T>::value, int> = 0>
2625
inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) {
2726
ss << t;
2827
}
2928

30-
template <typename T, typename std::enable_if<!std::is_fundamental<T>::value,
31-
int>::type = 0>
29+
template <typename T, std::enable_if_t<!std::is_fundamental<T>::value, int> = 0>
3230
inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) {
3331
ss << &t;
3432
}

0 commit comments

Comments
 (0)