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
/
callable
/
TestCallable.h
diff --git
a/tests/callable/TestCallable.h
b/tests/callable/TestCallable.h
index 7fea87045200dacf0823ed10989ed91158235ceb..a4185c52bde0bac6df2587dde4bc067142f58930 100644
(file)
--- a/
tests/callable/TestCallable.h
+++ b/
tests/callable/TestCallable.h
@@
-9,6
+9,10
@@
public:
: Callable<ArgumentType>(function) {
}
: Callable<ArgumentType>(function) {
}
+ TestCallable(std::function<void(ArgumentType)> function)
+ : Callable<ArgumentType>(function) {
+ }
+
void callFunction(ArgumentType test) {
this->call(test);
}
void callFunction(ArgumentType test) {
this->call(test);
}
@@
-21,6
+25,10
@@
public:
: Callable<void>(function) {
}
: Callable<void>(function) {
}
+ TestCallable(std::function<void(void)> function)
+ : Callable<void>(function) {
+ }
+
void callFunction() {
this->call();
}
void callFunction() {
this->call();
}