diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 2205d887..e969e67b 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -11,6 +11,8 @@ #ifndef BOOST_UNORDERED_DETAIL_FOA_HPP #define BOOST_UNORDERED_DETAIL_FOA_HPP +#include + #include #include #include @@ -1036,6 +1038,11 @@ public: #if defined(BOOST_MSVC) #pragma warning(push) #pragma warning(disable:4297) /* throw inside noexcept function */ +#endif + +#if defined(BOOST_GCC) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wterminate" #endif table& operator=(table&& x) @@ -1081,6 +1088,10 @@ public: return *this; } +#if defined(BOOST_GCC) +#pragma GCC diagnostic pop +#endif + #if defined(BOOST_MSVC) #pragma warning(pop) /* C4297 */ #endif