Possibility to pass class method reference
[command.git] / tests / option / handles_negative_float_value.cpp
index 02bc7e0d87e5f7712412cbfcc8c337e9c801be7e..6e031139e1d9238dce0c141f72f60d6a6474fc83 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 negative float value", function);
+    Option<OptionType> option(NAME, "Option with negative float value", _function);
 
     if (option.understand(OPTION)) {
         option.handle();