| 89 | |
| 90 | template <typename T, typename M> |
| 91 | static inline module_init_func_t MODULE_INIT_FUNC( |
| 92 | CommandResponse (M::*fn)(const T &)) { |
| 93 | return [fn](Module *m, const google::protobuf::Any &arg) { |
| 94 | T arg_; |
| 95 | arg.UnpackTo(&arg_); |
| 96 | auto base_fn = std::mem_fn(fn); |
| 97 | return base_fn(static_cast<M *>(m), arg_); |
| 98 | }; |
| 99 | } |
| 100 | |
| 101 | class Module; |
| 102 |
nothing calls this directly
no outgoing calls
no test coverage detected