From 62b8125ce1cefa16a3e45e75eb06d550229fdb35 Mon Sep 17 00:00:00 2001 From: fj6lml Date: Tue, 26 Jan 2021 18:03:40 +0100 Subject: [PATCH] Disable Wmisatched-tags for clang compiler in std::tuple helpers specialization --- include/tcb/span.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/tcb/span.hpp b/include/tcb/span.hpp index 8efcddb..b59d71e 100644 --- a/include/tcb/span.hpp +++ b/include/tcb/span.hpp @@ -590,6 +590,10 @@ constexpr auto get(span s) -> decltype(s[N]) namespace std { +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmismatched-tags" +#endif template class tuple_size> : public integral_constant {}; @@ -606,6 +610,9 @@ class tuple_element> { ""); using type = ElementType; }; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif } // end namespace std