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
/
invokes_void_function.cpp
diff --git
a/tests/callable/invokes_void_function.cpp
b/tests/callable/invokes_void_function.cpp
index f0e46714db67a178f2837b14a803efeed9397c7d..bf881d0f5b5d7e64a5e6fedafedeec552048fc4a 100644
(file)
--- a/
tests/callable/invokes_void_function.cpp
+++ b/
tests/callable/invokes_void_function.cpp
@@
-9,12
+9,12
@@
using namespace command;
bool test = false;
-void function(void) {
+void
_
function(void) {
test = true;
};
int main() {
- TestCallable<void> callable(function);
+ TestCallable<void> callable(
_
function);
callable.callFunction();
if (test == true) {