• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nholthaus / units / 720
0%
master: 0%

Build:
Build:
LAST BUILD BRANCH: v3.x
DEFAULT BRANCH: master
Ran 26 Oct 2018 03:58PM UTC
Jobs 1
Files 2
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
720

push

travis-ci

nholthaus
Simplify numerical scales (#199)

* Simplify numerical scales

- Change term of non-linear scale to numerical scale.
- Add `linear_value_t` tag to disambiguate the `unit` constructor
whose value is already linearized.
- Reduce the scales' scope of functionality
to what their name suggest.
Make them non-template entities
with only a `linearize` and `scale` static member functions
in place of their old constructor and `operator()` respectively.
Move `m_value` and `operator()` to `unit`,
where they naturally belong.
- `unit` still inherits from `NumericalScale`, but privately.
This is so that the scale traits continue to work.
- Rename `m_value` to `linearized_value`,
upgrading its explaining comment to code.
- Drop `constexpr` support from `decibel_scale`,
which uses non-`constexpr` `std` math functions.
- Remove `has_value_member`.

With this, the fact that the unit values are stored linearized
has effectively become an implementation detail, I think.

* VS2017 Fix

* VS2017 Fix

2989 of 2989 relevant lines covered (100.0%)

1.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 720.1 (MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" COVERALLS_SERVICE_NAME=travis-ci COVERALLS_REPO_TOKEN=[secure]) 26 Oct 2018 03:58PM UTC 0
100.0
Travis Job 720.1
Source Files on build 720
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #720
  • f3c23948 on github
  • Prev Build on v3.x (#682)
  • Next Build on v3.x (#721)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc