[Boost-bugs] [Boost C++ Libraries] #4276: warning "type qualifiers ignored on function return type" in ptr_map

Subject: [Boost-bugs] [Boost C++ Libraries] #4276: warning "type qualifiers ignored on function return type" in ptr_map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-01 12:15:42


#4276: warning "type qualifiers ignored on function return type" in ptr_map
--------------------------------------+-------------------------------------
 Reporter: boris.bigott@… | Owner: nesotto
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: ptr_container
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: ptr_map |
--------------------------------------+-------------------------------------
 The following program compiled with gcc using options -W and -Wall spits
 out a warning about ignored type qualifiers.

 test.cpp:
 #include <boost/ptr_container/ptr_map.hpp>
 int main() { }

 g++ -W -Wall test.cpp
 ../include/boost/ptr_container/detail/map_iterator.hpp:52: warning: type
 qualifiers ignored on function return type

 It seems like there is a superfluous const in the -> operator.
 const ref_pair* const operator->() const
 should be
 const ref_pair* operator->() const

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4276>
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:03 UTC