[Boost-bugs] [Boost C++ Libraries] #11212: "type qualifiers ignored on function return type" in ptr_container's map_iterator's operator->

Subject: [Boost-bugs] [Boost C++ Libraries] #11212: "type qualifiers ignored on function return type" in ptr_container's map_iterator's operator->
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-20 21:34:07


#11212: "type qualifiers ignored on function return type" in ptr_container's
map_iterator's operator->
------------------------------+---------------------------
 Reporter: martin.dorey@… | Owner: nesotto
     Type: Patches | Status: new
Milestone: To Be Determined | Component: ptr_container
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 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:

 martind_at_swiftboat:~/playpen$ cat map_iterator.cpp
 #include <boost/ptr_container/ptr_map.hpp>
 martind_at_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,
                  from /usr/include/boost/ptr_container/ptr_map.hpp:20,
                  from map_iterator.cpp:1:
 /usr/include/boost/ptr_container/detail/map_iterator.hpp:52:48: warning:
 type qualifiers ignored on function return type [-Wignored-qualifiers]
 martind_at_swiftboat:~/playpen$

 I'll attach a patch against trunk.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11212>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC