Possibility to pass class method reference
[command.git] / tests / callable / invokes_provided_function.cpp
index 7322da546907379b60858267d6164225c6db2fef..b722fbeb93120d010383817153d5a04643fb49e2 100644 (file)
@@ -9,13 +9,12 @@ using namespace command;
 
 bool test = false;
 
-void function(bool val) {
+void _function(bool val) {
     test = val;
 };
 
 int main() {
-
-    TestCallable<bool> callable(function);
+    TestCallable<bool> callable(_function);
     callable.callFunction(true);
 
     if (test == true) {