Re: [Boost-bugs] [Boost C++ Libraries] #7025: circular buffer reports warning: " type qualifiers ignored on function return type" while compile.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7025: circular buffer reports warning: " type qualifiers ignored on function return type" while compile.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-13 15:39:50


#7025: circular buffer reports warning: " type qualifiers ignored on function
return type" while compile.
-------------------------------+-------------------------
  Reporter: alps_xing@… | Owner: viboes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: call_traits
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------
Changes (by johnmaddock):

 * owner: johnmaddock => viboes

Comment:

 I'm unable to reproduce here - anyone have a test case?

 In any case, circular_buffer is abusing call_traits::param_type which is
 designed for parameters and ''not'' return values. And yes it really
 should be const ;-)

 Use call_traits::value_type or call_traits::const_reference for those
 return types (I think I would settle for the latter).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7025#comment:5>
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:13 UTC