Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the use of macros in kgr::Autocall #25

Open
gracicot opened this issue Sep 16, 2016 · 2 comments
Open

Remove the use of macros in kgr::Autocall #25

gracicot opened this issue Sep 16, 2016 · 2 comments

Comments

@gracicot
Copy link
Owner

Right now, to use kgr::Autocall with a relatively nice syntax, you must use a macro that expands into kgr::Method with the name of the function present two times.

With C++17, we could define kgr::AutoCall a bit like that:

template<auto... functions>
struct Autocall {
    // ...
};
@gracicot
Copy link
Owner Author

gracicot commented Dec 2, 2016

We will need to change kgr::Invoke to be a template variable, since auto only represent non-type template parameter.

@gracicot gracicot added this to the 4.0 milestone Jan 25, 2017
@gracicot gracicot removed this from the 4.0 milestone May 28, 2017
@gracicot
Copy link
Owner Author

kgr::Map would also need to be a variable template to be passed to kgr::AutoCall without defining two classes.

@gracicot gracicot modified the milestone: 5.0 Apr 25, 2019
@gracicot gracicot added this to the 5.0 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant