global_optimization: add template argument list (#2973)

Fixes error (-Wmissing-template-arg-list-after-template-kw) from clang-19 compiler.

Co-authored-by: Drew Risinger <drewrisinger@users.noreply.github.com>
This commit is contained in:
Drew Risinger 2024-06-25 19:01:12 -07:00 committed by GitHub
parent 6233808ce9
commit 0947215ddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace dlib
}
template <typename T>
static auto go(T&& f, const matrix<double,0,1>& a) -> decltype(call_function_and_expand_args<max_unpack-1>::template go(std::forward<T>(f),a))
static auto go(T&& f, const matrix<double,0,1>& a) -> decltype(call_function_and_expand_args<max_unpack-1>::template go<T>(std::forward<T>(f),a))
{
return call_function_and_expand_args<max_unpack-1>::go(std::forward<T>(f),a);
}