Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename ...Args>
- int16_t EventEmitter::addListener(uint32_t eventId, std::function<void(Args...)> cb)
- {
- ...
- }
- auto handler = [](int n) { ... };
- listener.addListener(0, std::function<void(int)>(handler));
- #define STDFUNC(fn) std::function<decltype(fn)>(fn)
Add Comment
Please, Sign In to add comment