Modify

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: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

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 Ion Gaztañaga

Resolution: fixed
Status: newclosed

Thanks for the report. Fixed in revision 82086.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.