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
Test for callable void function arguments.
[command.git]
/
tests
/
callable
/
TestCallable.h
diff --git
a/tests/callable/TestCallable.h
b/tests/callable/TestCallable.h
index 097e115b9acbee7be45c051ab92c432e2d91b998..7fea87045200dacf0823ed10989ed91158235ceb 100644
(file)
--- a/
tests/callable/TestCallable.h
+++ b/
tests/callable/TestCallable.h
@@
-13,3
+13,15
@@
public:
this->call(test);
}
};
+
+template<>
+class TestCallable<void> : public Callable<void> {
+public:
+ TestCallable(void (*function)(void))
+ : Callable<void>(function) {
+ }
+
+ void callFunction() {
+ this->call();
+ }
+};