Add specializations of __invoke_r for "callable"s of type cv-void
Add a bunch of tests for non-callable types
Details
Details
- Reviewers
- EricWF - mclow.lists 
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This doesn't address cases where any of the arguments are *cv void*. I'll take a stab at a fix tomorrow since I wrote all this metaprogramming.
Comment Actions
Fixed in
commit 011943a6e805a7666a7bff90ba27cd766bcc3a58
Author: Eric Fiselier <eric@efcs.ca>
Date:   Tue Jan 29 18:01:14 2019 +0000
    Fix PR40495 - is_invokable_v<void> does not compile
    The meta-programming that attempted to form the invoke call expression
    was not in a SFINAE context. This made it a hard error to provide
    non-referencable types like 'void' or 'void (...) const'.
    This patch fixes the error by checking the validity of the call
    expression within a SFINAE context.
    llvm-svn: 352522Commandeering to close.