| 134 | // Installs that take the sender as the first argument. |
| 135 | template <typename M> |
| 136 | void install(void (T::*method)(const process::UPID&, const M&)) |
| 137 | { |
| 138 | google::protobuf::Message* m = new M(); |
| 139 | T* t = static_cast<T*>(this); |
| 140 | protobufHandlers[m->GetTypeName()] = |
| 141 | lambda::bind(&handlerM<M>, |
| 142 | t, method, |
| 143 | lambda::_1, lambda::_2); |
| 144 | delete m; |
| 145 | } |
| 146 | |
| 147 | template <typename M> |
| 148 | void install(void (T::*method)(const process::UPID&, M&&)) |