Skip to content

Commit

Permalink
global_optimization: add template argument list (#2973)
Browse files Browse the repository at this point in the history
Fixes error (-Wmissing-template-arg-list-after-template-kw) from clang-19 compiler.

Co-authored-by: Drew Risinger <[email protected]>
  • Loading branch information
drewrisinger and drewrisinger authored Jun 26, 2024
1 parent 6233808 commit 0947215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlib/global_optimization/find_max_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0947215

Please sign in to comment.