Possibility to pass class method reference
[command.git] / tests / callable / invokes_provided_function.cpp
index 5defb08cb1d2a790bd38274ac1cf0e89099452ae..b722fbeb93120d010383817153d5a04643fb49e2 100644 (file)
@@ -9,12 +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) {