-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
InvokerType::Result
present conditionally instead of malformed…
… depending on whether the function is callable with the given arguments, so that the presence of `Result` and `ConstResult` can be used to detect usability of the given instantiation. Implement conditional functionality by class template specializations instead of by taking a `bool is_const_callable` template parameter and supplying its value in the usage later. This feels cleaner. Add SFINAE constraints to `{,Owning}Invoker()`. PiperOrigin-RevId: 689352893
- Loading branch information
Showing
1 changed file
with
42 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters