-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve dimensionless nholthaus unit support (#161)
Previously, we had a special implementation for `percent` only. This PR switches it to a more general solution that will handle every dimensionless value. (Note that the existing `percent` tests still pass, unmodified.) This change uncovered the fact that some nholthaus units (including `ppb_t`) are defined in terms of other `unit<...>` specializations, _not_ directly in terms of a `base_unit<...>`. I added a new generic pattern to deal with this case recursively.
- Loading branch information
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters