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_float_value.cpp
diff --git
a/tests/argument/handles_float_value.cpp
b/tests/argument/handles_float_value.cpp
index 9e53dc8d5b276f2d1cd9c11836ecab632f5a1492..f757a84f1e7c20e63a2b6261654c8fd3798bdcd9 100644
(file)
--- a/
tests/argument/handles_float_value.cpp
+++ b/
tests/argument/handles_float_value.cpp
@@
-11,12
+11,12
@@
typedef float 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 float", function);
+ Argument<ArgumentType> argument("Argument as float",
_
function);
if (argument.understand(VALUE)) {
argument.handle();
if (argument.understand(VALUE)) {
argument.handle();