forked from boostorg/unordered
Silence -Werror=terminate warning in move assignment
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user