Possibility to pass class method reference
[command.git] / tests / option / handles_int_value.cpp
index a6d9c46f51152b5d245817e999f4d75c00ecde1d..a386c26c28596a0833e5cb6134b39feb95430d0b 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 int", function);
+    Option<OptionType> option(NAME, "Option as int", _function);
 
     if (option.understand(OPTION)) {
         option.handle();