From 8f02e43ba4049ca56a578932570ad6566053cc13 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 30 Oct 2022 16:23:22 +0200 Subject: [PATCH] Work around -Wconversion on GCC 5 --- include/boost/unordered/detail/foa.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index ec74aa5b..14119549 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -186,7 +186,11 @@ struct group15 inline void mark_overflow(std::size_t hash) { +#if BOOST_WORKAROUND(BOOST_GCC, >= 50000 && BOOST_GCC < 60000) + overflow() = static_cast( overflow() | static_cast(1<<(hash%8)) ); +#else overflow()|=static_cast(1<<(hash%8)); +#endif } inline int match_available()const