From 9d03dbaa1d6ce4455233fcc12131ef5e61dec19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 7 Jun 2026 21:30:02 +0200 Subject: [PATCH] Make iterator comparisons trivial --- include/boost/container/experimental/nest.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/container/experimental/nest.hpp b/include/boost/container/experimental/nest.hpp index b24c95a..49acd47 100644 --- a/include/boost/container/experimental/nest.hpp +++ b/include/boost/container/experimental/nest.hpp @@ -749,12 +749,12 @@ public: return tmp; } - friend bool operator==(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT + BOOST_CONTAINER_FORCEINLINE friend bool operator==(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT { return x.pbb == y.pbb && x.n == y.n; } - friend bool operator!=(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT + BOOST_CONTAINER_FORCEINLINE friend bool operator!=(const nest_iterator& x, const nest_iterator& y) BOOST_NOEXCEPT { return !(x == y); }