Advertisement
Guest User

meh

a guest
Aug 29th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. template<class F, class T>
  2. auto call(F& func, Context& context, T& object) -> typename std::result_of<F(Context&, T&)>::type
  3. {
  4.    func(context, object);
  5. }
  6.  
  7. template<class F, class T>
  8. auto call(F& func, Context&, T& object) -> typename std::result_of<F(T&)>::type
  9. {
  10.     func(object);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement