X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2Fcallable%2FTestCallable.h;h=7fea87045200dacf0823ed10989ed91158235ceb;hb=723cec55870209fc6fba43c1d7b49ada83c07faa;hp=097e115b9acbee7be45c051ab92c432e2d91b998;hpb=d4b5ce7fcb3c7ffcfbdc28684a66f0b21b7ec446;p=command.git diff --git a/tests/callable/TestCallable.h b/tests/callable/TestCallable.h index 097e115..7fea870 100644 --- a/tests/callable/TestCallable.h +++ b/tests/callable/TestCallable.h @@ -13,3 +13,15 @@ public: this->call(test); } }; + +template<> +class TestCallable : public Callable { +public: + TestCallable(void (*function)(void)) + : Callable(function) { + } + + void callFunction() { + this->call(); + } +};