Subject: [Boost-bugs] [Boost C++ Libraries] #11336: units: base_unit_info name and symbol unavailable for absolute units
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-22 20:53:51
#11336: units: base_unit_info name and symbol unavailable for absolute units
------------------------------------+-----------------------------
Reporter: Roger Leigh <rleigh@â¦> | Owner: matthiasschabel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: units
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------------+-----------------------------
absolute<> works for making temperatures absolute. However, it does not
define a specialisation of the base_unit_info, so name_string and
symbol_string are unavailable and some methods fails as a result.
Please consider making absolute<> provide a base_unit_info specialisation
which delegates to the wrapped unit type's base_unit_info, but adds an
"absolute " prefix to both and can replace the ostream operator which
works partially for the symbol case, but not the unit name which is
completely absent. This will make absolute<> behave the same as a normal
unwrapped unit.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11336> 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