fix-tuple-hpp-after-clang-19.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 409db5e910279224bd7e78f8188450c7e7d34d87 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <[email protected]>
  3. Date: Tue, 10 Sep 2024 18:11:40 -0700
  4. Subject: [PATCH] Fix instances of
  5. -Wmissing-template-arg-list-after-template-kw.
  6. Clang has a new warning that requires a template argument list after using
  7. the template keyword. Remove uses of the template keyword when we're not
  8. specifying types.
  9. See https://github.com/llvm/llvm-project/issues/94194 for the upstream
  10. clang changes
  11. Signed-off-by: Khem Raj <[email protected]>
  12. ---
  13. include/cereal/types/tuple.hpp | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/include/cereal/types/tuple.hpp b/include/cereal/types/tuple.hpp
  16. index 80c6807..5c79eca 100644
  17. --- a/include/cereal/types/tuple.hpp
  18. +++ b/include/cereal/types/tuple.hpp
  19. @@ -95,7 +95,7 @@ namespace cereal
  20. template <class Archive, class ... Types> inline
  21. static void apply( Archive & ar, std::tuple<Types...> & tuple )
  22. {
  23. - serialize<Height - 1>::template apply( ar, tuple );
  24. + serialize<Height - 1>::apply( ar, tuple );
  25. ar( CEREAL_NVP_(tuple_element_name<Height - 1>::c_str(),
  26. std::get<Height - 1>( tuple )) );
  27. }
  28. @@ -116,7 +116,7 @@ namespace cereal
  29. template <class Archive, class ... Types> inline
  30. void CEREAL_SERIALIZE_FUNCTION_NAME( Archive & ar, std::tuple<Types...> & tuple )
  31. {
  32. - tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::template apply( ar, tuple );
  33. + tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::apply( ar, tuple );
  34. }
  35. } // namespace cereal
  36. --
  37. 2.50.1