Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bysreg
Created July 2, 2017 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bysreg/20256b7a60e5880e81ba5f57943d9189 to your computer and use it in GitHub Desktop.
Save bysreg/20256b7a60e5880e81ba5f57943d9189 to your computer and use it in GitHub Desktop.
Derived Object Registration (using object_factory.hpp gist)
#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