Possibility to pass class method reference
[command.git] / tests / argument / handles_int_value.cpp
index ffe130c83cd30549951f3ab306424d41bc65f800..4295286063ed4c9ef192c6b363a09040426cb835 100644 (file)
@@ -12,12 +12,12 @@ typedef int ArgumentType;
 
 ArgumentType test;
 
-void function(ArgumentType value) {
+void _function(ArgumentType value) {
     test = value;
 }
 
 int main() {
-    Argument<ArgumentType> argument("Argument as int", function);
+    Argument<ArgumentType> argument("Argument as int", _function);
 
     if (argument.understand(VALUE)) {
         argument.handle();