From 395cd70a8c28a4ea408a227d745fe20ed8af9105 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 10 Sep 2024 18:11:40 -0700 Subject: [PATCH] Fix instances of -Wmissing-template-arg-list-after-template-kw. Clang has a new warning that requires a template argument list after using the template keyword. Remove uses of the template keyword when we're not specifying types. See https://github.com/llvm/llvm-project/issues/94194 for the upstream clang changes Upstream-Status: Submitted [https://github.com/USCiLab/cereal/pull/835] Signed-off-by: Khem Raj --- include/cereal/types/tuple.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cereal/types/tuple.hpp b/include/cereal/types/tuple.hpp index 80c68075..5c79eca9 100644 --- a/include/cereal/types/tuple.hpp +++ b/include/cereal/types/tuple.hpp @@ -95,7 +95,7 @@ namespace cereal template inline static void apply( Archive & ar, std::tuple & tuple ) { - serialize::template apply( ar, tuple ); + serialize::apply( ar, tuple ); ar( CEREAL_NVP_(tuple_element_name::c_str(), std::get( tuple )) ); } @@ -116,7 +116,7 @@ namespace cereal template inline void CEREAL_SERIALIZE_FUNCTION_NAME( Archive & ar, std::tuple & tuple ) { - tuple_detail::serialize>::value>::template apply( ar, tuple ); + tuple_detail::serialize>::value>::apply( ar, tuple ); } } // namespace cereal