From 621b5b4ec1f48ee22eb17c87f9a8a9b5c833e54a Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sun, 2 Oct 2022 11:14:19 +0200 Subject: [PATCH] shut down bogus VS warning --- include/boost/unordered/detail/foa.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index c7603ee2..1f4ec897 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1013,6 +1013,11 @@ public: return *this; } +#if defined(BOOST_MSVC) +#pragma warning(push) +#pragma warning(disable:4297) /* throw inside noexcept function */ +#endif + table& operator=(table&& x) noexcept( alloc_traits::is_always_equal::value&& @@ -1054,6 +1059,10 @@ public: return *this; } +#if defined(BOOST_MSVC) +#pragma warning(pop) /* C4297 */ +#endif + allocator_type get_allocator()const noexcept{return al();} iterator begin()noexcept