Skip to content

Instantly share code, notes, and snippets.

@Cylix
Created October 19, 2020 05:59
Show Gist options
  • Save Cylix/a7a4bb9de17dcec2988eaedfaa58853b to your computer and use it in GitHub Desktop.
Save Cylix/a7a4bb9de17dcec2988eaedfaa58853b to your computer and use it in GitHub Desktop.
Reflection in C++14 - Macros #1
static reflectable<SomeClass> register_some_class("SomeClass",
std::make_pair(std::string("some_fct_1"), &SomeClass::some_fct_1),
std::make_pair(std::string("some_fct_2"), &SomeClass::some_fct_2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment