Mateusz Pusz
dcc2d24c8e
refactor: squared units use *2 now instead of sq_* prefix
2020-09-09 19:53:48 +02:00
Mateusz Pusz
4bfdc60521
chore: invalid unit fixed in a commented out code
2020-09-09 19:21:32 +02:00
Mateusz Pusz
9527b39005
refactor: 💥 q_* UDL renamed to _q_*
...
We had some fun exploring the STD UDLs for potential collisions,
we have learnt our lesson and know how to proceed.
Now is high time to start behaving and obeying C++ rules.
2020-09-09 19:20:35 +02:00
Mateusz Pusz
2b408f19c0
Merge branch 'master' of github.com:mpusz/units
2020-09-09 11:22:58 +02:00
Mateusz Pusz
3e9d5ca189
refactor: ♻️ unitless renamed to one
...
Resolves #27
2020-09-09 11:20:55 +02:00
Johel Ernesto Guerrero Peña
749684c8ee
style: fix name numbering
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
ce583d40e0
style: name parameter after what's being tested
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
2853a20c7f
style: remove empty parameter list
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
9a130d9b5b
test: percent to unitless conversion
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
c842115604
test: dimensionless common type
2020-09-09 08:53:53 +02:00
Mateusz Pusz
dba2b7f44f
docs: TODO added
...
The suggested code still is not supported by the latest available VS version
2020-09-08 23:00:00 +02:00
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