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_string_value.cpp
diff --git
a/tests/option/handles_string_value.cpp
b/tests/option/handles_string_value.cpp
index 7f9099d42e8936d6c9eec353579d168600d24e66..c318351b6bbec00eadf717f4df736d6872612548 100644
(file)
--- a/
tests/option/handles_string_value.cpp
+++ b/
tests/option/handles_string_value.cpp
@@
-15,12
+15,12
@@
typedef std::string OptionType;
OptionType test;
OptionType test;
-void function(OptionType value) {
+void
_
function(OptionType value) {
test = value;
}
int main() {
test = value;
}
int main() {
- Option<OptionType> option(NAME, "Option with string value", function);
+ Option<OptionType> option(NAME, "Option with string value",
_
function);
if (option.understand(OPTION)) {
option.handle();
if (option.understand(OPTION)) {
option.handle();