[Boost-bugs] [Boost C++ Libraries] #7650: container::list<>::const_iterator operator-> compile failure

Subject: [Boost-bugs] [Boost C++ Libraries] #7650: container::list<>::const_iterator operator-> compile failure
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-06 05:03:46


#7650: container::list<>::const_iterator operator-> compile failure
----------------------------------------------+-----------------------------
 Reporter: Andrew Bell <andrewfb@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
----------------------------------------------+-----------------------------
 The following example code fails to compile in Clang in XCode 4.5.1 and
 VC++ 2010.

 {{{
 struct Ex { int a; };
 boost::container::list<Ex>::const_iterator eIt;
 std::cout << eIt->a;
 }}}

 Clang's error message (similar to VC++'s) is:

 {{{
 boost/boost/container/list.hpp:121:64: error: no member named 'to_pointer'
 in 'boost::intrusive::pointer_traits<const BasicApp::Ex *>'
    { return
 ::boost::intrusive::pointer_traits<const_pointer>::to_pointer(this->m_it->m_data);
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7650>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC