From 7f35d14d83bec137214efeee13d980e3c2ca46ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Pelczar?= Date: Mon, 16 Aug 2021 10:34:28 +0200 Subject: [PATCH] list_iterator: Fix declaration of node shadowing member MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When code is compiled with -Wshadow (outside GCC's "system" include paths), the compiler will complain: warning: declaration of ‘node’ shadows a member of ‘boost::intrusive::list_iterator’ Signed-off-by: Jarosław Pelczar --- include/boost/intrusive/detail/list_iterator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/intrusive/detail/list_iterator.hpp b/include/boost/intrusive/detail/list_iterator.hpp index 880b6a9..0478981 100644 --- a/include/boost/intrusive/detail/list_iterator.hpp +++ b/include/boost/intrusive/detail/list_iterator.hpp @@ -81,8 +81,8 @@ class list_iterator BOOST_INTRUSIVE_FORCEINLINE node_ptr pointed_node() const { return members_.nodeptr_; } - BOOST_INTRUSIVE_FORCEINLINE list_iterator &operator=(const node_ptr &node) - { members_.nodeptr_ = node; return *this; } + BOOST_INTRUSIVE_FORCEINLINE list_iterator &operator=(const node_ptr &nodeptr) + { members_.nodeptr_ = nodeptr; return *this; } BOOST_INTRUSIVE_FORCEINLINE const_value_traits_ptr get_value_traits() const { return members_.get_ptr(); }