[clangd] Fix bool conversion operator of UniqueFunction
Usages of it were giving compiler errors because of the missing explicit conversion. llvm-svn: 320591
This commit is contained in:
parent
3f82cfc329
commit
3db40ffef3
|
@ -49,7 +49,7 @@ public:
|
|||
FunctionCallImpl<typename std::decay<Callable>::type>>(
|
||||
std::forward<Callable>(Func))) {}
|
||||
|
||||
operator bool() { return CallablePtr; }
|
||||
operator bool() { return bool(CallablePtr); }
|
||||
|
||||
Ret operator()(Args... As) {
|
||||
assert(CallablePtr);
|
||||
|
|
Loading…
Reference in New Issue