]> git.llucax.com Git - software/eventxx.git/blobdiff - test/wrapped-functor-way.cpp
tagged 0.4
[software/eventxx.git] / test / wrapped-functor-way.cpp
index 9664b8ad700a75f2c7a6e464741f072ee64180aa..4c85a6dff19ee895dffbc126b0d4cb2d16588b8a 100644 (file)
@@ -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()
 {