X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/c584f2e4d45ee21a00dae09f4be54144eafef7ac..e3b857433641f21c26dcac5705bd6bf6cab90175:/test/wrapped-functor-way.cpp?ds=inline diff --git a/test/wrapped-functor-way.cpp b/test/wrapped-functor-way.cpp index 9664b8a..4c85a6d 100644 --- a/test/wrapped-functor-way.cpp +++ b/test/wrapped-functor-way.cpp @@ -9,7 +9,7 @@ struct handler dispatcher& d; int i; handler(dispatcher& d): d(d), i(0) {} - void handle_event(int signum, short event) + void handle_event(int signum, eventxx::type event) { std::cout << ++i << " interrupts, "; if (i < 5) std::cout << "keep going...\n"; @@ -21,7 +21,7 @@ struct handler } }; -typedef eventxx::mem_cb< handler, void (handler::*)(int, short) > cb_type; +typedef eventxx::mem_cb< handler, void (handler::*)(int, eventxx::type) > cb_type; int main() {