Skip to content

Instantly share code, notes, and snippets.

@Cylix
Created October 19, 2020 05:27
Show Gist options
  • Select an option

  • Save Cylix/842736bceca8078afeac76367d999b03 to your computer and use it in GitHub Desktop.

Select an option

Save Cylix/842736bceca8078afeac76367d999b03 to your computer and use it in GitHub Desktop.
Reflection in C++14 - Static Variables Exemple #3
class reflectable {
public:
//! constructor of a reflectable class where we can process the registration
reflectable(/* ... */) {
//! registration of a class or member function here
}
};
static reflectable register_some_class;
int main(void) {
//! process reflection
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment