Boost C++ Libraries: Ticket #7650: container::list<>::const_iterator operator-> compile failure https://svn.boost.org/trac10/ticket/7650 <p> The following example code fails to compile in Clang in XCode 4.5.1 and VC++ 2010. </p> <pre class="wiki">struct Ex { int a; }; boost::container::list&lt;Ex&gt;::const_iterator eIt; std::cout &lt;&lt; eIt-&gt;a; </pre><p> Clang's error message (similar to VC++'s) is: </p> <pre class="wiki">boost/boost/container/list.hpp:121:64: error: no member named 'to_pointer' in 'boost::intrusive::pointer_traits&lt;const BasicApp::Ex *&gt;' { return ::boost::intrusive::pointer_traits&lt;const_pointer&gt;::to_pointer(this-&gt;m_it-&gt;m_data); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7650 Trac 1.4.3 reakinator@… Fri, 09 Nov 2012 04:38:54 GMT <link>https://svn.boost.org/trac10/ticket/7650#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7650#comment:1</guid> <description> <p> From looking at pointer_traits.hpp, is it supposed to be </p> <p> return ::boost::intrusive::pointer_traits&lt;const_pointer&gt;::<strong>pointer_to</strong>(this-&gt;m_it-&gt;m_data); } </p> <p> ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 18 Dec 2012 21:15:46 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7650#comment:2 https://svn.boost.org/trac10/ticket/7650#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Fixed in revision 82086. </p> Ticket