From df32d79e8a8dd1e1827e4f1f681f4ce43a9ae8d0 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 14 Oct 2022 13:30:49 +0200 Subject: [PATCH] shut down VS warning --- include/boost/unordered/detail/foa.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 79e5b079..f81517de 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1367,6 +1367,12 @@ private: #endif } +#if defined(BOOST_MSVC) +/* warning: forcing value to bool 'true' or 'false' in bool(pred()...) */ +#pragma warning(push) +#pragma warning(disable:4800) +#endif + template BOOST_FORCEINLINE iterator find_impl( const Key& x,std::size_t pos0,std::size_t hash)const @@ -1395,6 +1401,10 @@ private: return {}; // TODO end() does not work (returns const_iterator) } +#if defined(BOOST_MSVC) +#pragma warning(pop) /* C4800 */ +#endif + template BOOST_FORCEINLINE std::pair emplace_impl(Args&&... args) {