Re: [Boost-bugs] [Boost C++ Libraries] #11389: Bug: Unit precision is restricted to double when using conversion constants

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11389: Bug: Unit precision is restricted to double when using conversion constants
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-10 15:47:21


#11389: Bug: Unit precision is restricted to double when using conversion constants
-------------------------------------+-----------------------------
  Reporter: Roger Leigh <rleigh@…> | Owner: matthiasschabel
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: units
   Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+-----------------------------

Comment (by Roger Leigh <rleigh@…>):

 One thought here would be to define the conversion constants in the same
 way as the math constants, giving the user separate float, double and long
 double values (or equivalents via the templates). This would then let the
 quantity template value type be used to select the constant of the
 appropriate precision during conversions.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11389#comment:1>
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