Possibility to pass class method reference
[command.git] / tests / option / handles_negative_int_value.cpp
index 816e8da0fa8933a2cd0fc2fd45d5d3f40d066c21..2e2ea821d50f7f60beb7b9d42ad3b0e82856fcb0 100644 (file)
@@ -15,12 +15,12 @@ typedef int OptionType;
 
 OptionType test;
 
-void function(OptionType value) {
+void _function(OptionType value) {
     test = value;
 }
 
 int main() {
-    Option<OptionType> option(NAME, "Option as negative int", function);
+    Option<OptionType> option(NAME, "Option as negative int", _function);
 
     if (option.understand(OPTION)) {
         option.handle();