Reputation: 151
Suppose we have following methods A and B. What is the correct way of invoking "f" and why?
template<class F> auto A(F&& f) { std::forward<F>(f)(...); } template<class F> auto B(F&& f) { f(...); }
Upvotes: 1
Views: 43