Mateusz Pusz
991863594d
refactor: ♻️ two pow() overloads merged into one
...
Also fixes doxygen warnings.
2020-09-08 18:37:29 +02:00
Mateusz Pusz
33ad51311b
docs: 📝 dimensionless quantities documentation added
2020-09-08 17:13:38 +02:00
Mateusz Pusz
8c9986dec8
Merge branch 'master' of github.com:mpusz/units
2020-09-08 13:23:36 +02:00
Mateusz Pusz
f1bb1910f3
style: Prefix concept still does not work :-(
2020-09-08 13:14:21 +02:00
Mateusz Pusz
d8e8a94c5b
style: comment changed for has_symbol
2020-09-08 13:13:04 +02:00
Mateusz Pusz
4f0271e6f9
style: 🔥 dead code in customization_points.h removed
2020-09-08 13:11:58 +02:00
Mateusz Pusz
f45d1e8286
refactor: [[nodiscard]] added to math funcitons
2020-09-08 13:10:34 +02:00
Mateusz Pusz
4bb51586dc
refactor: got rid of gcc-9 backlog
...
BREAKING CHANGE: gcc-9.3 no longer supported
2020-09-08 13:09:34 +02:00
Mateusz Pusz
7ed4f19ef3
refactor: ♻️ exp_* operations on exponents renamed to `exponent_*
2020-09-08 11:10:33 +02:00
Mateusz Pusz
563b358d5e
feat!: 💥 dimensionless quantities refactored
...
Dimensionless quantities are now represented by quantity types rather
than by plain representation types. Only dimensionless quantities with
`unitless` unit are implicitly convertible from representation types.
`units::exp()` now is a function doing std::exp() on a representation
type (previous `units::exp` class template was renamed to
`units::exponent`).
BREAKING_CHANGE: gcc-9.3 support removed
BREAKING_CHANGE: `exp` and `Exp` renamed to `exponent` and `Exponent`
Resolves #27
Resolves #42
2020-09-08 11:02:16 +02:00
Johel Ernesto Guerrero Peña
f83ba6eb39
refactor: remove indirection for further simplification
2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña
8fc0c254a6
style: add TODO comment for when to update
2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña
fac1f582c8
chore: iwyu
2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña
9299131174
refactor: simplify is_derived_from_{scaled_unit,base_dimension}
2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña
7c00b196a3
refactor: simplify is_derived_from_specialization_of
2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña
e30aa9c4a0
refactor: simplify is_specialization_of
2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña
db041061e0
chore: iwyu
2020-09-08 09:42:27 +02:00
Mateusz Pusz
0e6142a5d2
docs: missing build dependencies added
2020-09-07 15:06:01 +02:00
Mateusz Pusz
ed15ef7729
docs: unintended links replaced with code snippets (I have this part of RST)
2020-09-07 13:17:06 +02:00
Mateusz Pusz
c8b60b80c1
docs: CHANGELOG fixed
2020-09-07 12:46:58 +02:00
Mateusz Pusz
59715fed22
docs: FAQ section extended
2020-09-07 12:46:29 +02:00
Mateusz Pusz
35036ae4d8
docs: quick start example updated with fmt
...
Compiler Explorer finaly does not time out of fmt library :-)
2020-09-07 12:45:56 +02:00
Mateusz Pusz
93c05b2938
docs: quantity_point documentation fixed
2020-09-07 12:44:00 +02:00
Mateusz Pusz
7e2841dcaa
test: Floating-point comparison improved in si_fps_test.cpp
2020-09-07 11:14:00 +02:00
Mateusz Pusz
0180b34c84
refactor: unknown_coherent_unit moved to the end of a unit.h
2020-09-07 11:12:58 +02:00
Mateusz Pusz
00cb2cd6c3
refactor: cast_ratio now uses quantity_ratio
2020-09-07 11:11:12 +02:00
Mateusz Pusz
f3d9828abd
constinit added to C++ keywords in docs
2020-09-06 23:54:14 +02:00
Mateusz Pusz
31d407d19e
Usage docs updated
2020-09-06 23:53:42 +02:00
Johel Ernesto Guerrero Peña
46761ea2f7
refactor: *_instantation_of to *_specialization_of
2020-09-06 22:52:01 +02:00
Mateusz Pusz
65286b7a81
Small refactoring of LA example
2020-09-06 18:10:52 +02:00
Mateusz Pusz
f41eea1cd1
Merge branch 'master' of https://github.com/mpusz/units
2020-09-06 15:38:18 +02:00
Mateusz Pusz
73636cbb8e
Invalid test removed
2020-09-06 15:36:04 +02:00
Mateusz Pusz
cacd3ae543
Non-zero denominator contract added for ratio
2020-09-06 15:35:52 +02:00
Mateusz Pusz
77e11173bf
Unit tests compilation fixed on VS
2020-09-06 15:35:08 +02:00
Mateusz Pusz
95410ab49b
bincrafters conan remote removed from build.py
2020-09-06 14:54:37 +02:00
Mateusz Pusz
44b54c290d
test_package fixed
2020-09-06 12:36:49 +02:00
Mateusz Pusz
a02a375dc8
Merge branch 'master' of github.com:mpusz/units
2020-09-06 10:30:05 +02:00
Mateusz Pusz
d03d7291e4
Removed cmake/common submodule
2020-09-06 10:29:52 +02:00
Johel Ernesto Guerrero Peña
f1f23aa8f9
test: codify comments
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
c09dbb1756
test: add missing explicit specifier
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
4112414729
test: nonzero denominator
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
36046fb6a6
test: simplify case
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
4aeb9d305a
test: what we mean
...
a concept can fail for whatever requirement,
and maybe the "main" one actually works
(== in this case)
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
aff83b31dc
test: codify comment
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
45cf2dcf88
test: remove outdated comment
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
71eda2fc66
test: codify comment in the correct place
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
9f9397ffc2
test: convert comments to code
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
ca1867c9b2
refactor!: pow functions as detail
2020-09-06 09:45:24 +02:00
Johel Ernesto Guerrero Peña
2f5be094b2
refactor: pow10 functions to pow.h
2020-09-06 09:45:24 +02:00
Johel Ernesto Guerrero Peña
40fb1e1e8b
fix: iwyu
2020-09-06 09:45:24 +02:00