forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 221
Expand file tree
/
Copy path6190.patch
More file actions
41 lines (35 loc) · 1.58 KB
/
6190.patch
File metadata and controls
41 lines (35 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 409db5e910279224bd7e78f8188450c7e7d34d87 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
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 <class Archive, class ... Types> inline
static void apply( Archive & ar, std::tuple<Types...> & tuple )
{
- serialize<Height - 1>::template apply( ar, tuple );
+ serialize<Height - 1>::apply( ar, tuple );
ar( CEREAL_NVP_(tuple_element_name<Height - 1>::c_str(),
std::get<Height - 1>( tuple )) );
}
@@ -116,7 +116,7 @@ namespace cereal
template <class Archive, class ... Types> inline
void CEREAL_SERIALIZE_FUNCTION_NAME( Archive & ar, std::tuple<Types...> & tuple )
{
- tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::template apply( ar, tuple );
+ tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::apply( ar, tuple );
}
} // namespace cereal