diff --git a/lspserver/include/lspserver/LSPBinder.h b/lspserver/include/lspserver/LSPBinder.h index 9e9656d6c..36f71ac3f 100644 --- a/lspserver/include/lspserver/LSPBinder.h +++ b/lspserver/include/lspserver/LSPBinder.h @@ -6,6 +6,7 @@ #include #include #include + #include namespace lspserver { @@ -13,7 +14,7 @@ namespace lspserver { namespace detail { template -typename std::enable_if, T>::type +typename std::enable_if_t, T> valueOrUninitialized(const std::optional &OptionalDefault) { T Result; if (OptionalDefault) { @@ -23,7 +24,7 @@ valueOrUninitialized(const std::optional &OptionalDefault) { } template -typename std::enable_if, T>::type +typename std::enable_if_t, T> valueOrUninitialized(const std::optional &OptionalDefault) { return OptionalDefault.value(); } @@ -54,8 +55,7 @@ llvm::Expected parseParamWithOptionalDefault( } // namespace detail template -typename std::enable_if, - llvm::Expected>::type +typename std::enable_if_t, llvm::Expected> parseParam(const llvm::json::Value &Raw, llvm::StringRef PayloadName, llvm::StringRef PayloadKind) { return detail::parseParamWithOptionalDefault(Raw, PayloadName,