Boost C++ Libraries: Ticket #4276: warning "type qualifiers ignored on function return type" in ptr_map https://svn.boost.org/trac10/ticket/4276 <p> The following program compiled with gcc using options -W and -Wall spits out a warning about ignored type qualifiers. </p> <p> test.cpp: #include &lt;boost/ptr_container/ptr_map.hpp&gt; int main() { } </p> <p> g++ -W -Wall test.cpp ../include/boost/ptr_container/detail/map_iterator.hpp:52: warning: type qualifiers ignored on function return type </p> <p> It seems like there is a superfluous const in the -&gt; operator. const ref_pair* const operator-&gt;() const should be const ref_pair* operator-&gt;() const </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4276 Trac 1.4.3 FloSoft Fri, 15 Apr 2011 07:36:04 GMT <link>https://svn.boost.org/trac10/ticket/4276#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:1</guid> <description> <p> any progress here? that warning is annoying :( </p> </description> <category>Ticket</category> </item> <item> <author>ravishankar@…</author> <pubDate>Wed, 08 Jun 2011 15:10:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4276#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:2</guid> <description> <p> Could be avoided by #pragma GCC push_options #pragma GCC diagnostic ignored "-Wignored-qualifiers" #include &lt;boost/ptr_container/ptr_map.hpp&gt; #pragma GCC pop_options </p> <p> But there is really simple, safety and tiny fix, described above. I can't understand a reason why it isn't fixed still. </p> </description> <category>Ticket</category> </item> <item> <author>dgpickett@…</author> <pubDate>Thu, 12 Jan 2012 20:59:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4276#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:3</guid> <description> <p> Maybe it is a do it yourself repository? I had to clean it up for a fussy build wrapper! Thanks! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>FloSoft</dc:creator> <pubDate>Mon, 02 Apr 2012 08:32:44 GMT</pubDate> <title>version, severity, milestone changed https://svn.boost.org/trac10/ticket/4276#comment:4 https://svn.boost.org/trac10/ticket/4276#comment:4 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost 1.47.0</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket anonymous Mon, 02 Apr 2012 08:33:19 GMT <link>https://svn.boost.org/trac10/ticket/4276#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:5</guid> <description> <p> if I use those pragmas I'm getting segfaults with boost program_options. </p> </description> <category>Ticket</category> </item> <item> <author>Mika Fischer <mika.fischer@…></author> <pubDate>Thu, 28 Jun 2012 15:21:33 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/4276#comment:6 https://svn.boost.org/trac10/ticket/4276#comment:6 <ul> <li><strong>cc</strong> <span class="trac-author">mika.fischer@…</span> added </li> </ul> Ticket cjs@… Fri, 06 Jul 2012 09:28:08 GMT <link>https://svn.boost.org/trac10/ticket/4276#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:7</guid> <description> <p> I just ran in to this, too. How about fixing it by removing the second const? </p> </description> <category>Ticket</category> </item> <item> <author>gredner@…</author> <pubDate>Wed, 05 Dec 2012 20:16:08 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4276 https://svn.boost.org/trac10/ticket/4276 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">map_iterator.patch</span> </li> </ul> <p> Patch for this issue that removes the second 'const' </p> Ticket gredner@… Wed, 05 Dec 2012 20:17:02 GMT <link>https://svn.boost.org/trac10/ticket/4276#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:8</guid> <description> <p> It would be nice to get this trivial issue taken care of! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 08 Aug 2014 15:38:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4276#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:9</guid> <description> <p> +1 </p> </description> <category>Ticket</category> </item> <item> <author>martin.dorey@…</author> <pubDate>Wed, 08 Apr 2015 17:04:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4276#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:10</guid> <description> <p> Patch applied here too, our-ref D57661. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 25 Oct 2016 14:07:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4276#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4276#comment:11</guid> <description> <p> This patch works, would be nice if it would get applied </p> </description> <category>Ticket</category> </item> </channel> </rss>