summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clangd/Function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Function.h b/clang-tools-extra/clangd/Function.h
index 9cf0b22a35f..8d1da07d095 100644
--- a/clang-tools-extra/clangd/Function.h
+++ b/clang-tools-extra/clangd/Function.h
@@ -49,7 +49,7 @@ public:
FunctionCallImpl<typename std::decay<Callable>::type>>(
std::forward<Callable>(Func))) {}
- operator bool() { return bool(CallablePtr); }
+ explicit operator bool() { return bool(CallablePtr); }
Ret operator()(Args... As) {
assert(CallablePtr);
OpenPOWER on IntegriCloud