Guest User

Untitled

a guest
Nov 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. template <typename ...Args>
  2. int16_t EventEmitter::addListener(uint32_t eventId, std::function<void(Args...)> cb)
  3. {
  4. ...
  5. }
  6.  
  7. auto handler = [](int n) { ... };
  8.  
  9. listener.addListener(0, std::function<void(int)>(handler));
  10.  
  11. #define STDFUNC(fn) std::function<decltype(fn)>(fn)
Add Comment
Please, Sign In to add comment