From 2955a966cf5a7b3445f5ed52da995cd0b9f102c5 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Mon, 10 Oct 2022 09:29:41 +0200 Subject: [PATCH] shut down unavoidable VS warning --- include/boost/unordered/detail/foa.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index d9faf56b..a0ea22e8 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -825,6 +826,14 @@ constexpr static float const mlf = 0.875f; #pragma warning(disable:4714) /* marked as __forceinline not inlined */ #endif +#if BOOST_WORKAROUND(BOOST_MSVC,<=1900) +/* VS2015 marks as unreachable generic catch clauses around non-throwing + * code. + */ +#pragma warning(push) +#pragma warning(disable:4702) +#endif + template class @@ -1525,6 +1534,11 @@ private: std::size_t ml; }; + +#if BOOST_WORKAROUND(BOOST_MSVC,<=1900) +#pragma warning(pop) /* C4702 */ +#endif + #if defined(BOOST_MSVC) #pragma warning(pop) /* C4714 */ #endif