mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
Clang has a new warning (-Wmissing-template-arg-list-after-template-kw) that requires a template argument list after using the template keyword. The upstream dlib (transcluded into netdata by the means of git submodules) has fixed this issue, but netdata has not yet picked up this change. Instead, apply the change directly to the vendored dlib for all versions affected by this. Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk> Closes: https://github.com/gentoo/gentoo/pull/39315 Signed-off-by: Sam James <sam@gentoo.org>
31 lines
1.4 KiB
Diff
31 lines
1.4 KiB
Diff
From 0947215ddb268fef192e45c140c9430f77648166 Mon Sep 17 00:00:00 2001
|
|
From: Drew Risinger <10198051+drewrisinger@users.noreply.github.com>
|
|
Date: Tue, 25 Jun 2024 19:01:12 -0700
|
|
Subject: [PATCH] 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>
|
|
|
|
Origin: upstream, https://github.com/davisking/dlib/pull/2973
|
|
---
|
|
src/ml/dlib/dlib/global_optimization/find_max_global.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ml/dlib/dlib/global_optimization/find_max_global.h b/src/ml/dlib/dlib/global_optimization/find_max_global.h
|
|
index 12e496e69894..8a05ae9050d4 100644
|
|
--- a/src/ml/dlib/dlib/global_optimization/find_max_global.h
|
|
+++ b/src/ml/dlib/dlib/global_optimization/find_max_global.h
|
|
@@ -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);
|
|
}
|
|
--
|
|
2.43.0
|
|
|