Ticket #7650 (closed Bugs: fixed)

Opened 5 years ago

Last modified 4 years ago

container::list<>::const_iterator operator-> compile failure

Reported by: Andrew Bell <andrewfb@…> Owned by: igaztanaga
Milestone: To Be Determined Component: container
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:


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); }


Change History

comment:1 Changed 5 years ago by reakinator@…

From looking at pointer_traits.hpp, is it supposed to be

return ::boost::intrusive::pointer_traits<const_pointer>::pointer_to(this->m_it->m_data); }


comment:2 Changed 4 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

Thanks for the report. Fixed in revision 82086.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.