Modify

Ticket #7650 (closed Bugs: fixed)

Opened 18 months ago

Last modified 16 months 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:

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

Change History

comment:1 Changed 18 months 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 16 months ago by igaztanaga

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

Thanks for the report. Fixed in revision 82086.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.