Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class F, class T>
- auto call(F& func, Context& context, T& object) -> typename std::result_of<F(Context&, T&)>::type
- {
- func(context, object);
- }
- template<class F, class T>
- auto call(F& func, Context&, T& object) -> typename std::result_of<F(T&)>::type
- {
- func(object);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement