Skip to content

Instantly share code, notes, and snippets.

@Cylix
Created October 19, 2020 05:50
Show Gist options
  • Save Cylix/dc2692ef5433a80c1c54448793c886f5 to your computer and use it in GitHub Desktop.
Save Cylix/dc2692ef5433a80c1c54448793c886f5 to your computer and use it in GitHub Desktop.
Reflection in C++14 - Member Function #4
//! iterate over the parameters pack
template <typename Head, typename... Tail>
void register_function(const Head& head, Tail... tail) {
register_function(head);
register_function(tail...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment