Mateusz Pusz
5d62dda479
refactor: non-zero contracts check in quantity improved
...
Thanks @johelegp!
2020-09-08 22:55:41 +02:00
Mateusz Pusz
c1d0354b24
docs: CHANGELOG updated
2020-09-08 21:19:37 +02:00
Mateusz Pusz
9a49df7222
refactor: 💥 Scalar concept renamed to ScalableNumber
...
Resolves #114
2020-09-08 21:17:09 +02:00
Mateusz Pusz
9ca65240c8
docs: MSVC constraints moved to Visual Studio
2020-09-08 20:36:45 +02:00
Johel Ernesto Guerrero Peña
675d77f3ba
fix: unconditional typename
2020-09-08 20:10:36 +02:00
Johel Ernesto Guerrero Peña
2600ababb6
style: fix indentation
2020-09-08 20:10:36 +02:00
Johel Ernesto Guerrero Peña
0021e66651
style: complete section name
2020-09-08 20:10:36 +02:00
Johel Ernesto Guerrero Peña
7fb8b456bc
refactor: simplify dimension_unit
2020-09-08 20:10:36 +02:00
Mateusz Pusz
88c4ef07b0
docs: Minor documentation related issues resolved
2020-09-08 20:05:30 +02:00
Mateusz Pusz
1f54edda33
docs: references section added
2020-09-08 20:04:29 +02:00
Mateusz Pusz
9734fb02e2
docs: "Reference" section of the documentation disabled as it crashes Sphinx
2020-09-08 20:02:07 +02:00
Mateusz Pusz
76b6c2972d
test: more unit tests for dimensionless quantity
2020-09-08 18:45:14 +02:00
Mateusz Pusz
e25d4d8096
docs: missing file resolved
2020-09-08 18:44:04 +02:00
Mateusz Pusz
01e1040d5b
docs: CHANGELOG updated
2020-09-08 18:43:19 +02:00
Mateusz Pusz
4cec29972f
docs: quantity_point documentation fixed
2020-09-08 18:43:00 +02:00
Mateusz Pusz
8cc784aa28
docs: missing namespaces added
2020-09-08 18:40:46 +02:00
Mateusz Pusz
ff02575aae
docs: duplicated 'construction' chapters fixed
2020-09-08 18:39:05 +02:00
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