Skip to content

Instantly share code, notes, and snippets.

@Bueddl
Created January 5, 2017 16:56
Show Gist options
  • Save Bueddl/838e39320428a7d6b63a05f3266b0896 to your computer and use it in GitHub Desktop.
Save Bueddl/838e39320428a7d6b63a05f3266b0896 to your computer and use it in GitHub Desktop.
class replacement
{
public:
void setter(int a)
{
_setter(this, a);
}
int getter() const
{
return _getter(this);
}
virtual ~replacement() = 0;
virtual int virtual_getter() const = 0;
static setter_fn_t *_setter;
static getter_fn_t *_getter;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment