[Boost-bugs] [Boost C++ Libraries] #8690: duration_units_default - lost return types constness in overridden methods

Subject: [Boost-bugs] [Boost C++ Libraries] #8690: duration_units_default - lost return types constness in overridden methods
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-12 19:31:43


#8690: duration_units_default - lost return types constness in overridden methods
------------------------------+---------------------
 Reporter: tmmikolajczyk@… | Owner: viboes
     Type: Patches | Status: new
Milestone: To Be Determined | Component: chrono
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 When implementing custom chrono duration units by deriving from
 duration_units_default<> I noticed the "get_valid_units_start" and
 "get_valid_units_end" is declared to return mutable string_type pointer
 however the base class (duration_units<>) declares them as immutable.
 The attached patch has been generated with the "git diff --no-prefix"
 command (I have boost svn repo cloned with the git-svn tool).

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