diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 91877fa..3ae7e85 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2347,8 +2347,8 @@ In that case, and only that case, make the parameter `TP&&` where `TP` is a temp ##### Example template - inline auto invoke(F&& f, Args&&... args) { - return forward(f)(forward(args)...); + inline auto invoke(F f, Args&&... args) { + return f(forward(args)...); }