-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previous commit just replaced instances of "class B0, class B1, class C0, class C1" with "class... BoundArgs, class... ContextArgs". This loses the requirement that the numbers must match. Now, the original code was also inconsistent as to whether it used separate types for the target function and the call input parameters. Some forms just used B0, B1 as parameters rather than separate C0, C1. I believe the separate parameters would have been primarily to avoid template deduction confusion - eg if int was supplied to a B0 parameter but the function took char as B0, there would be an ambiguity. But the fix didn't seem to be fully applied. Rewritten all templates parameterising on function pointer type and input arguments so that they use `type_identity_t<BoundArgTs>...` as input parameters to match the target function. This has the subtle effect that any conversion happens at invocation, before storing to the context, rather than when the context calls the target.
- Loading branch information
Showing
2 changed files
with
45 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
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