Fixed invoke() example to not forward the functor, to reflect other discussion

This commit is contained in:
hsutter 2015-12-02 12:25:58 -08:00
parent ac773e44d4
commit 247be64de6

View File

@ -2347,8 +2347,8 @@ In that case, and only that case, make the parameter `TP&&` where `TP` is a temp
##### Example
template <class F, class... Args>
inline auto invoke(F&& f, Args&&... args) {
return forward<F>(f)(forward<Args>(args)...);
inline auto invoke(F f, Args&&... args) {
return f(forward<Args>(args)...);
}