ArgumentType test;
-void function(ArgumentType value) {
+void _function(ArgumentType value) {
test = value;
}
int main() {
- Argument<ArgumentType> argument("Argument as negative int", function);
+ Argument<ArgumentType> argument("Argument as negative int", _function);
if (argument.understand(VALUE)) {
argument.handle();
}
+ else {
+ cout << "Argument class do not understand negative int values\n";
+ return 1;
+ }
if (test == std::stoi(VALUE)) {
cout << "Argument class handles negative int values\n";