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_arguments_by_separator.cpp
diff --git
a/tests/multiValue/should_extract_arguments_by_separator.cpp
b/tests/multiValue/should_extract_arguments_by_separator.cpp
index 8b5e5e3f918a1a480bcb6c1c0ca49f1f3151adad..4b0c1ec84311e375efa8297b0642744732120f08 100644
(file)
--- a/
tests/multiValue/should_extract_arguments_by_separator.cpp
+++ b/
tests/multiValue/should_extract_arguments_by_separator.cpp
@@
-13,13
+13,13
@@
typedef int ArgumentType;
std::vector<ArgumentType> input;
std::vector<ArgumentType> input;
-void function(ArgumentType value) {
+void
_
function(ArgumentType value) {
input.push_back(value);
cout << "Catched value: " << value << "\n";
}
int main() {
input.push_back(value);
cout << "Catched value: " << value << "\n";
}
int main() {
- Parameter * argument = new MultiValue(",", new Argument<ArgumentType>("Argument as multiValue int", function));
+ Parameter * argument = new MultiValue(",", new Argument<ArgumentType>("Argument as multiValue int",
_
function));
try {
if (argument->understand(VALUE)) {
try {
if (argument->understand(VALUE)) {