Possibility to pass class method reference
[command.git] / tests / option / handles_void_value.cpp
index b6528e3bbb1c0cd01ebc5202cbafcb09c4d5a93e..4157bc403104b971769ca504106fc6e78361b525 100644 (file)
@@ -11,12 +11,12 @@ typedef void OptionType;
 
 bool test = false;
 
-void function() {
+void _function() {
     test = true;
 }
 
 int main() {
-    Option<OptionType> option(NAME, "Option with void value", function);
+    Option<OptionType> option(NAME, "Option with void value", _function);
 
     if (option.understand(NAME)) {
         option.handle();