dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Possibility to pass class method reference
[command.git]
/
tests
/
argument
/
handles_boolean_value.cpp
diff --git
a/tests/argument/handles_boolean_value.cpp
b/tests/argument/handles_boolean_value.cpp
index b41106f6de9e2025ce4aba208f7706932a02c668..5fb944e4546e0947ec13b3cdb319972f25ee97d4 100644
(file)
--- a/
tests/argument/handles_boolean_value.cpp
+++ b/
tests/argument/handles_boolean_value.cpp
@@
-12,12
+12,12
@@
typedef bool ArgumentType;
ArgumentType test;
ArgumentType test;
-void function(ArgumentType value) {
+void
_
function(ArgumentType value) {
test = value;
}
int main() {
test = value;
}
int main() {
- Argument<ArgumentType> argument("Argument as boolean", function);
+ Argument<ArgumentType> argument("Argument as boolean",
_
function);
if (argument.understand(FALSE)) {
argument.handle();
if (argument.understand(FALSE)) {
argument.handle();
@@
-31,7
+31,7
@@
int main() {
cout << "Argument class handles boolean (FALSE) values\n";
}
cout << "Argument class handles boolean (FALSE) values\n";
}
- Argument<ArgumentType> argument2("Argument as boolean", function);
+ Argument<ArgumentType> argument2("Argument as boolean",
_
function);
if (argument2.understand(TRUE)) {
argument2.handle();
}
if (argument2.understand(TRUE)) {
argument2.handle();
}