diff --git a/include/boost/container/detail/copy_move_algo.hpp b/include/boost/container/detail/copy_move_algo.hpp index cc87e4a..f03800a 100644 --- a/include/boost/container/detail/copy_move_algo.hpp +++ b/include/boost/container/detail/copy_move_algo.hpp @@ -34,7 +34,12 @@ // other #include // std -#include //for emmove/memcpy +#include //for memmove/memcpy + +#if defined(BOOST_GCC) && (BOOST_GCC >= 80000) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wclass-memaccess" +#endif namespace boost { namespace container { @@ -1141,4 +1146,9 @@ void move_assign_range_alloc_n( Allocator &a, I inp_start, typename allocator_tr } //namespace container { } //namespace boost { +#if defined(BOOST_GCC) && (BOOST_GCC >= 80000) +#pragma GCC diagnostic pop +#endif + + #endif //#ifndef BOOST_CONTAINER_DETAIL_COPY_MOVE_ALGO_HPP