From 1c72f530e787e672d9db696dd4b028b849bc8d6f Mon Sep 17 00:00:00 2001 From: Herve Martin Date: Thu, 18 Apr 2019 09:37:23 +0200 Subject: [PATCH] Disable Wmisatched-tags for clang compiler in std::tuple helpers specialization Fixes #10 Signed-off-by: Herve Martin --- include/tcb/span.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/tcb/span.hpp b/include/tcb/span.hpp index 1370677..f66b8ed 100644 --- a/include/tcb/span.hpp +++ b/include/tcb/span.hpp @@ -753,6 +753,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 {}; @@ -764,6 +768,9 @@ class tuple_element> { public: using type = E; }; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif } // end namespace std