Created
January 5, 2017 16:56
-
-
Save Bueddl/838e39320428a7d6b63a05f3266b0896 to your computer and use it in GitHub Desktop.
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
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