Opened 8 years ago
#11212 new Patches
"type qualifiers ignored on function return type" in ptr_container's map_iterator's operator->
Reported by: | Owned by: | Thorsten Ottosen | |
---|---|---|---|
Milestone: | To Be Determined | Component: | ptr_container |
Version: | Boost 1.49.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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@swiftboat:~/playpen$ cat map_iterator.cpp #include <boost/ptr_container/ptr_map.hpp> 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,
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@swiftboat:~/playpen$
I'll attach a patch against trunk.
patch from trunk