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_string_value.cpp
diff --git
a/tests/argument/handles_string_value.cpp
b/tests/argument/handles_string_value.cpp
index 38e6efa98c5d6044eed80c110a7ca617b6e872ed..6f7309ed84ba09c3524e08308503f04b38bcdf93 100644
(file)
--- a/
tests/argument/handles_string_value.cpp
+++ b/
tests/argument/handles_string_value.cpp
@@
-12,12
+12,12
@@
typedef std::string 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 string", function);
+ Argument<ArgumentType> argument("Argument as string",
_
function);
if (argument.understand(VALUE)) {
argument.handle();
if (argument.understand(VALUE)) {
argument.handle();