Boost logo

Boost Users :

Subject: [Boost-users] [unordered] gcc complains in unordered/detail/table.hpp
From: Ioannis Papadopoulos (ipapadop_at_[hidden])
Date: 2011-11-21 15:38:08


Hi,

In unordered/detail/table.hpp:177 the following exists:

         iterator& operator++() {
             node_ = node_ = static_cast<node_pointer>(node_->next_);
             return *this;
         }

         iterator operator++(int) {
             iterator tmp(node_);
             node_ = node_ = static_cast<node_pointer>(node_->next_);
             return tmp;
         }

gcc 4.6.1 complains about

boost_1_48_0/include/boost/unordered/detail/table.hpp:177:13: warning:
operation on
‘this->boost::unordered::iterator_detail::iterator<boost::unordered::detail::ptr_node<std::pair<const
int, int> >*, std::pair<const int, int> >::node_’ may be undefined
[-Wsequence-point]

what is the purpose of node_ = node_ ?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net