Created
July 2, 2017 02:26
-
-
Save bysreg/20256b7a60e5880e81ba5f57943d9189 to your computer and use it in GitHub Desktop.
Derived Object Registration (using object_factory.hpp gist)
This file contains 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
#include "object_factory.hpp" | |
class DerivedObject : public Object | |
{ | |
public: | |
DerivedObject::DerivedObject() | |
{ | |
// some code | |
} | |
}; | |
REGISTER(DerivedObject, DerivedType) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment