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

nholthaus / units / 720 / 1
0%
master: 0%

Build:
Build:
LAST BUILD BRANCH: v3.x
DEFAULT BRANCH: master
Ran 26 Oct 2018 03:58PM UTC
Files 2
Run time 0s
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

26 Oct 2018 03:54PM UTC coverage: 100.0%. Remained the same
MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" COVERALLS_SERVICE_NAME=travis-ci COVERALLS_REPO_TOKEN=[secure]

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

Source Files on job 720.1 (MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" COVERALLS_SERVICE_NAME=travis-ci COVERALLS_REPO_TOKEN=[secure])
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 418
  • Travis Job 720.1
  • f3c23948 on github
  • Prev Job for MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" COVERALLS_SERVICE_NAME=travis-ci COVERALLS_REPO_TOKEN=[secure] on v3.x (#682.1)
  • Next Job for MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" COVERALLS_SERVICE_NAME=travis-ci COVERALLS_REPO_TOKEN=[secure] on v3.x (#721.1)
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