Possibility to pass class method reference
[command.git] / tests / multiValue / should_extract_arguments_by_separator.cpp
index 8b5e5e3f918a1a480bcb6c1c0ca49f1f3151adad..4b0c1ec84311e375efa8297b0642744732120f08 100644 (file)
@@ -13,13 +13,13 @@ typedef int ArgumentType;
 
 std::vector<ArgumentType> input;
 
-void function(ArgumentType value) {
+void _function(ArgumentType value) {
     input.push_back(value);
     cout << "Catched value: " << value << "\n";
 }
 
 int main() {
-    Parameter * argument = new MultiValue(",", new Argument<ArgumentType>("Argument as multiValue int", function));
+    Parameter * argument = new MultiValue(",", new Argument<ArgumentType>("Argument as multiValue int", _function));
 
     try {
         if (argument->understand(VALUE)) {