Silence -Werror=terminate warning in move assignment

This commit is contained in:
Christian Mazakas
2022-10-04 14:52:38 -07:00
parent 1a89b0aa14
commit fdbc79d2a8

View File

@ -11,6 +11,8 @@
#ifndef BOOST_UNORDERED_DETAIL_FOA_HPP
#define BOOST_UNORDERED_DETAIL_FOA_HPP
#include <iostream>
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <boost/core/bit.hpp>
@ -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