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
/
multiValue
/
should_extract_options_by_separator.cpp
diff --git
a/tests/multiValue/should_extract_options_by_separator.cpp
b/tests/multiValue/should_extract_options_by_separator.cpp
index 1f19354c8f15a09256fe68635eb1a6a766010589..dbbc38a7e5633172cceb21799283471dcfbd6bd6 100644
(file)
--- a/
tests/multiValue/should_extract_options_by_separator.cpp
+++ b/
tests/multiValue/should_extract_options_by_separator.cpp
@@
-16,13
+16,13
@@
typedef int OptionType;
std::vector<OptionType> input;
std::vector<OptionType> input;
-void function(OptionType value) {
+void
_
function(OptionType value) {
input.push_back(value);
cout << "Catched value: " << value << "\n";
}
int main() {
input.push_back(value);
cout << "Catched value: " << value << "\n";
}
int main() {
- Parameter * option = new MultiValue(",", new Option<OptionType>(NAME, "Option as multiValue int", function));
+ Parameter * option = new MultiValue(",", new Option<OptionType>(NAME, "Option as multiValue int",
_
function));
try {
if (option->understand(OPTION)) {
try {
if (option->understand(OPTION)) {