Boost C++ Libraries: Ticket #2348: const qualified return value in iterator_facade https://svn.boost.org/trac10/ticket/2348 <p> This is a very minor thing: </p> <p> The line: </p> <pre class="wiki">boost::indirect_iterator&lt;const int* const *&gt; it; </pre><p> creating a iterator for constant iteration through a container of constant pointers creates a warning </p> <p> "boost/iterator/iterator_facade.hpp:653: warning: type qualifiers ignored on function return type" </p> <p> obviously this is not the way to fix it, but changing this line to typename remove_const&lt;typename boost::detail::operator_brackets_result&lt;Derived,Value,reference&gt;::type&gt;::type solves the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2348 Trac 1.4.3 Marshall Clow Tue, 23 Sep 2008 19:14:31 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2348#comment:1 https://svn.boost.org/trac10/ticket/2348#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Dave Abrahams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">iterator</span> </li> </ul> Ticket Dave Abrahams Wed, 21 Nov 2012 19:41:56 GMT owner changed https://svn.boost.org/trac10/ticket/2348#comment:2 https://svn.boost.org/trac10/ticket/2348#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">jeffrey.hellrung</span> </li> </ul> Ticket