Boost C++ Libraries: Ticket #11212: "type qualifiers ignored on function return type" in ptr_container's map_iterator's operator-> https://svn.boost.org/trac10/ticket/11212 <p> Sorry to bore you with such trivia, when I know this is easy for anyone who hits it to fix themselves, but it'd be nice if we didn't have to reapply this patch when we upgrade Boost. While I'm raising this on the obsolete version I actually used in the test case below, the fingered code is still present in svn: </p> <p> martind@swiftboat:~/playpen$ cat map_iterator.cpp #include &lt;boost/ptr_container/ptr_map.hpp&gt; martind@swiftboat:~/playpen$ gcc -c -Wignored-qualifiers -Wsystem-headers map_iterator.cpp In file included from /usr/include/boost/ptr_container/ptr_map_adapter.hpp:19:0, </p> <blockquote> <p> from /usr/include/boost/ptr_container/ptr_map.hpp:20, from map_iterator.cpp:1: </p> </blockquote> <p> /usr/include/boost/ptr_container/detail/map_iterator.hpp:52:48: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] martind@swiftboat:~/playpen$ </p> <p> I'll attach a patch against trunk. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11212 Trac 1.4.3 martin.dorey@… Mon, 20 Apr 2015 21:56:55 GMT attachment set https://svn.boost.org/trac10/ticket/11212 https://svn.boost.org/trac10/ticket/11212 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">D108057.2015-04-20.trunk[1].patch</span> </li> </ul> <p> patch from trunk </p> Ticket