Possibility to pass class method reference
[command.git] / tests / option / handles_float_value.cpp
index 6bbc5ed700ae440e4b4a22ea525967de12bf9c3a..e04b622da08a1f0f1b4f07bb4f35f4a7a9889989 100644 (file)
@@ -15,12 +15,12 @@ typedef float OptionType;
 
 OptionType test;
 
-void function(OptionType value) {
+void _function(OptionType value) {
     test = value;
 }
 
 int main() {
-    Option<OptionType> option(NAME, "Option with float value", function);
+    Option<OptionType> option(NAME, "Option with float value", _function);
 
     if (option.understand(OPTION)) {
         option.handle();