JDevlieghere added a comment.

I agree with Pavel, I prefer having a slightly more complex constructor if we 
can make the call sites simpler for the simple common cases, especially since 
we don't lose any generality by doing so. It's also not an uncommon pattern in 
C++, e.g. `std::async` does something very similar.

Also +1 on just calling operator bool on the function itself.


https://reviews.llvm.org/D43662



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to