| Index: ipc/ipc_message.h
|
| ===================================================================
|
| --- ipc/ipc_message.h (revision 69724)
|
| +++ ipc/ipc_message.h (working copy)
|
| @@ -130,27 +130,29 @@
|
| header()->routing = new_id;
|
| }
|
|
|
| - template<class T>
|
| - static bool Dispatch(const Message* msg, T* obj, void (T::*func)()) {
|
| + template<class T, class S>
|
| + static bool Dispatch(const Message* msg, T* obj, S* sender,
|
| + void (T::*func)()) {
|
| (obj->*func)();
|
| return true;
|
| }
|
|
|
| - template<class T>
|
| - static bool Dispatch(const Message* msg, T* obj, void (T::*func)() const) {
|
| + template<class T, class S>
|
| + static bool Dispatch(const Message* msg, T* obj, S* sender,
|
| + void (T::*func)() const) {
|
| (obj->*func)();
|
| return true;
|
| }
|
|
|
| - template<class T>
|
| - static bool Dispatch(const Message* msg, T* obj,
|
| + template<class T, class S>
|
| + static bool Dispatch(const Message* msg, T* obj, S* sender,
|
| void (T::*func)(const Message&)) {
|
| (obj->*func)(*msg);
|
| return true;
|
| }
|
|
|
| - template<class T>
|
| - static bool Dispatch(const Message* msg, T* obj,
|
| + template<class T, class S>
|
| + static bool Dispatch(const Message* msg, T* obj, S* sender,
|
| void (T::*func)(const Message&) const) {
|
| (obj->*func)(*msg);
|
| return true;
|
|
|