Possibility to pass class method reference
[command.git] / tests / argument / handles_string_value.cpp
index 38e6efa98c5d6044eed80c110a7ca617b6e872ed..6f7309ed84ba09c3524e08308503f04b38bcdf93 100644 (file)
@@ -12,12 +12,12 @@ typedef std::string ArgumentType;
 
 ArgumentType test;
 
-void function(ArgumentType value) {
+void _function(ArgumentType value) {
     test = value;
 }
 
 int main() {
-    Argument<ArgumentType> argument("Argument as string", function);
+    Argument<ArgumentType> argument("Argument as string", _function);
 
     if (argument.understand(VALUE)) {
         argument.handle();