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>
pull/2978/head
Drew Risinger 3 months ago committed by GitHub
parent 6233808ce9
commit 0947215ddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}

Loading…
Cancel
Save