Opened 5 years ago

Closed 5 years ago

#7650 closed Bugs (fixed)

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

Attachments (0)

Change History (2)

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 5 years ago by igaztanaga

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

Thanks for the report. Fixed in revision 82086.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain igaztanaga.
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.