projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
467abe3
)
[clangd] Made UniqueFunction's bool conversion explicit
author
Ilya Biryukov
<ibiryukov@google.com>
Wed, 20 Dec 2017 14:06:05 +0000
(14:06 +0000)
committer
Ilya Biryukov
<ibiryukov@google.com>
Wed, 20 Dec 2017 14:06:05 +0000
(14:06 +0000)
llvm-svn: 321173
clang-tools-extra/clangd/Function.h
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/Function.h
b/clang-tools-extra/clangd/Function.h
index
9cf0b22
..
8d1da07
100644
(file)
--- 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);