From 5ab5c7de6352bc3da27c74e66edce329bb39aeae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 15 Sep 2018 01:18:27 +0200 Subject: [PATCH] Add noexcept_if to tree::swap --- include/boost/container/detail/tree.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/container/detail/tree.hpp b/include/boost/container/detail/tree.hpp index 7d02553..193a286 100644 --- a/include/boost/container/detail/tree.hpp +++ b/include/boost/container/detail/tree.hpp @@ -1436,6 +1436,8 @@ class tree { return !(x < y); } BOOST_CONTAINER_FORCEINLINE friend void swap(tree& x, tree& y) + BOOST_NOEXCEPT_IF( allocator_traits_type::is_always_equal::value + && boost::container::dtl::is_nothrow_swappable::value ) { x.swap(y); } };