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) {