[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:
Ilya Biryukov 2017-12-13 15:42:59 +00:00
parent 3f82cfc329
commit 3db40ffef3
1 changed files with 1 additions and 1 deletions

View File

@ -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);