Opened 10 years ago
Closed 10 years ago
#7650 closed Bugs (fixed)
container::list<>::const_iterator operator-> compile failure
Reported by: | 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); }
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the report. Fixed in revision 82086.
Note:
See TracTickets
for help on using tickets.
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); }
?