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