Created
October 19, 2020 05:27
-
-
Save Cylix/842736bceca8078afeac76367d999b03 to your computer and use it in GitHub Desktop.
Reflection in C++14 - Static Variables Exemple #3
This file contains hidden or 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
| 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