From 4eb93761db27c68b88ef4d7fd8793335fe3313c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 9 Aug 2020 23:28:07 +0200 Subject: [PATCH] Fix "-Wdeprecated-copy" warnings --- include/boost/container/adaptive_pool.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/container/adaptive_pool.hpp b/include/boost/container/adaptive_pool.hpp index b9037b7..08e4f62 100644 --- a/include/boost/container/adaptive_pool.hpp +++ b/include/boost/container/adaptive_pool.hpp @@ -132,6 +132,10 @@ class adaptive_pool adaptive_pool(const adaptive_pool &) BOOST_NOEXCEPT_OR_NOTHROW {} + //!Copy assignment from other adaptive_pool. + adaptive_pool & operator=(const adaptive_pool &) BOOST_NOEXCEPT_OR_NOTHROW + { return *this; } + //!Copy constructor from related adaptive_pool. template adaptive_pool @@ -442,6 +446,10 @@ class private_adaptive_pool private_adaptive_pool(const private_adaptive_pool &) BOOST_NOEXCEPT_OR_NOTHROW {} + //!Copy assignment from other adaptive_pool. + private_adaptive_pool & operator=(const private_adaptive_pool &) BOOST_NOEXCEPT_OR_NOTHROW + { return *this; } + //!Copy constructor from related private_adaptive_pool. template private_adaptive_pool