shut down VS warning

This commit is contained in:
joaquintides
2022-10-14 13:30:49 +02:00
parent aefb5dd66a
commit df32d79e8a

View File

@ -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<typename Key>
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<typename... Args>
BOOST_FORCEINLINE std::pair<iterator,bool> emplace_impl(Args&&... args)
{