Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit data operators #12

Merged
merged 5 commits into from
Jan 15, 2020
Merged

Unit data operators #12

merged 5 commits into from
Jan 15, 2020

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Jan 15, 2020

Move <measurement> pow and root to free functions instead of members.
adjust the readme.
move unit root function to free function so the classes are the same under header only and non header only.
adjust the test cases with the new function calls.
add overloads of the units for pow as a free function. I think it still works best to have the units pow function be a member function since it is actually used frequently. root not as much.
unit_base still has a root member since that does a lot of the low level calculations on root powers and wouldn't make sense as a non-member function

phlptp and others added 5 commits January 14, 2020 11:52
…ssuming they are power based. +-> * and - to / + and - are only appropriate if the assumption of powers holds true, but it doesn't abstract it very much. * and / are just clearer in my opinion.
…HEADER_ONLY classes are the same as the non-header only classes and the there will be no class conflicts in object files.
@phlptp phlptp merged commit 4227623 into master Jan 15, 2020
@phlptp phlptp deleted the unit_data_operators branch January 15, 2020 19:30
@codecov-io
Copy link

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #12   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines        3589   3591    +2     
=====================================
+ Hits         3589   3591    +2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants