6 using namespace command;
11 typedef bool ArgumentType;
15 void function(ArgumentType value) {
20 Argument<ArgumentType> argument("Argument as boolean", function);
22 if (argument.understand(FALSE)) {
26 cout << "Argument class do not understand boolean (FALSE) values\n";
30 if (test == (bool)std::stoi(FALSE)) {
31 cout << "Argument class handles boolean (FALSE) values\n";
34 Argument<ArgumentType> argument2("Argument as boolean", function);
35 if (argument2.understand(TRUE)) {
39 cout << "Argument class do not understand boolean (TRUE) values\n";
43 if (test == (bool)std::stoi(TRUE)) {
44 cout << "Argument class handles boolean (TRUE) values\n";
48 cout << "Argument class do not handle boolean values\n";