summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2017-12-20 14:06:05 +0000
committerIlya Biryukov <ibiryukov@google.com>2017-12-20 14:06:05 +0000
commitd1ca8b929f50d952ca6d1650a61cef2b6d2cedf3 (patch)
treed3ed08a270577d65a1d5f166b00e1973d239b4b5
parentb86a86a7128e3a326e31c4b29fcaa924ae3c16d0 (diff)
[clangd] Made UniqueFunction's bool conversion explicit
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@321173 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--clangd/Function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clangd/Function.h b/clangd/Function.h
index 9cf0b22a..8d1da07d 100644
--- a/clangd/Function.h
+++ b/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);