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