Possibility to pass class method reference
[command.git] / tests / option / should_throw_exception_on_missing_value.cpp
index f872ed12292e7ef1dc77b30d80d970d4586118ea..4b901fb648d50d343703a5e9438763861ad55145 100644 (file)
@@ -9,10 +9,10 @@
 using namespace std;
 using namespace command;
 
-void function(int) { }
+void _function(int) { }
 
 int main() {
-    Option<int> option(NAME, "Option should throw exception on missing value", function);
+    Option<int> option(NAME, "Option should throw exception on missing value", _function);
 
     try {
         if (option.understand(BAD_OPTION)) {