[Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>
- Next message: Boost C++ Libraries: "[Boost-bugs] [Boost C++ Libraries] #10673: non central chi quared distribution"
- Previous message: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10382: 1.56.0 Graph adjacency_list has compile errors on g++ 4.6.4"
- Next in thread: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
#10672: std::iterator_traits<boost::unordered_map<K,M>::iterator>::pointer should
be value_type*, not detail::ptr_node<...>
------------------------------+-------------------------
Reporter: anonymous | Owner: danieljames
Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
Version: Boost 1.54.0 | Severity: Problem
Keywords: |
------------------------------+-------------------------
The iterator type looks like:
template <typename NodePointer, typename Value>
struct iterator
: public boost::iterator<
std::forward_iterator_tag, Value, std::ptrdiff_t,
NodePointer, Value&>
The NodePointer argument here (which is
boost::unordered::detail::ptr_node<...>) becomes the
iterator_traits<>::pointer type.
But iterator's operator->() returns Value *:
Value* operator->() const {
return &node_->value();
}
Seems like this should be changed.
--
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10672>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
- Next message: Boost C++ Libraries: "[Boost-bugs] [Boost C++ Libraries] #10673: non central chi quared distribution"
- Previous message: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10382: 1.56.0 Graph adjacency_list has compile errors on g++ 4.6.4"
- Next in thread: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10672: std::iterator_traits<boost::unordered_map<K, M>::iterator>::pointer should be value_type*, not detail::ptr_node<...>"
This archive was generated by hypermail 2.1.7
: 2017-02-16 18:50:17 UTC