Possibility to pass class method reference
[command.git] / tests / callable / TestCallable.h
index 7fea87045200dacf0823ed10989ed91158235ceb..a4185c52bde0bac6df2587dde4bc067142f58930 100644 (file)
@@ -9,6 +9,10 @@ public:
         : Callable<ArgumentType>(function) {
     }
 
+    TestCallable(std::function<void(ArgumentType)> function)
+        : Callable<ArgumentType>(function) {
+    }
+
     void callFunction(ArgumentType test) {
         this->call(test);
     }
@@ -21,6 +25,10 @@ public:
         : Callable<void>(function) {
     }
 
+    TestCallable(std::function<void(void)> function)
+        : Callable<void>(function) {
+    }
+
     void callFunction() {
         this->call();
     }