diff --git a/dlib/global_optimization/find_max_global.h b/dlib/global_optimization/find_max_global.h index 12e496e69..8a05ae905 100644 --- a/dlib/global_optimization/find_max_global.h +++ b/dlib/global_optimization/find_max_global.h @@ -58,7 +58,7 @@ namespace dlib } template - static auto go(T&& f, const matrix& a) -> decltype(call_function_and_expand_args::template go(std::forward(f),a)) + static auto go(T&& f, const matrix& a) -> decltype(call_function_and_expand_args::template go(std::forward(f),a)) { return call_function_and_expand_args::go(std::forward(f),a); }