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
/
option
/
handles_void_value.cpp
diff --git
a/tests/option/handles_void_value.cpp
b/tests/option/handles_void_value.cpp
index b6528e3bbb1c0cd01ebc5202cbafcb09c4d5a93e..4157bc403104b971769ca504106fc6e78361b525 100644
(file)
--- a/
tests/option/handles_void_value.cpp
+++ b/
tests/option/handles_void_value.cpp
@@
-11,12
+11,12
@@
typedef void OptionType;
bool test = false;
bool test = false;
-void function() {
+void
_
function() {
test = true;
}
int main() {
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();
if (option.understand(NAME)) {
option.handle();