Mateusz Pusz
f4747a4d7d
refactor: ♻️ more file system related cleanup (mostly physical dimensions definitions)
...
BREAKING_CHANGE: current, substance, temperature renamed to proper names
2020-09-11 21:16:26 +02:00
Mateusz Pusz
2d51b2f233
fix: wrong integral type used for exponent values fixed
2020-09-11 18:12:07 +02:00
Mateusz Pusz
2a56438f1c
refactor: file tree with systems defninitions refactored to limit ODR issues
...
Relates to #32 as with this commit we created something like modules for derived quantities
2020-09-11 18:11:25 +02:00
Matthew Barry
4120fd408b
Fix typo in 'day' time unit declaration
...
Output formatted in days (e.g., `quantity_cast<si::day>(some_time)`) had the right scaling, but the wrong unit (`h` instead of `d`)
2020-09-11 08:36:28 +02:00
rbrugo
1061d2ac56
Fixed indentation
2020-09-10 23:09:12 +02:00
rbrugo
91761f0522
Added L modifier for localization
2020-09-10 23:09:12 +02:00
Mateusz Pusz
79558a6d72
refactor: systems defined in terms of SI moved under si namespace
2020-09-10 17:14:33 +02:00
Mateusz Pusz
6f88a03285
fix: ambiguity of operators in case of unknown_dimension resolved
2020-09-10 13:02:33 +02:00
Mateusz Pusz
9cd0cb4105
feat: two argument explicit cast support added
2020-09-10 13:01:38 +02:00
Mateusz Pusz
44e8d39102
feat: dimensionless quantity implicit construction enabled for DOWNCAST_MODE=OFF
2020-09-10 11:34:58 +02:00
Johel Ernesto Guerrero Peña
4cb1122ff4
fix: require equal exponent ratios for DimensionOf when UNITS_DOWNCAST OFF
2020-09-10 08:37:36 +02:00
Johel Ernesto Guerrero Peña
c284b7e25a
refactor: simplify Prefix
2020-09-10 08:20:17 +02:00
Johel Ernesto Guerrero Peña
bc8632ee27
fix: Prefix
2020-09-10 08:20:17 +02:00
Johel Ernesto Guerrero Peña
d6fba478b9
feat: working dimension concepts with UNITS_DOWNCAST OFF
...
continuation of https://github.com/johelegp/units-1/commit/22e6107d0f363d894dcef98dd427e4004ac88f30
2020-09-10 00:01:06 +02:00
Mateusz Pusz
8f49561242
refactor: the default dowcasting mode changed from AUTO to ON
2020-09-09 20:50:58 +02:00
Mateusz Pusz
e367afed71
Merge branch 'downcasting_2.0'
2020-09-09 20:31:03 +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
3e9d5ca189
refactor: ♻️ unitless renamed to one
...
Resolves #27
2020-09-09 11:20:55 +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
9a49df7222
refactor: 💥 Scalar concept renamed to ScalableNumber
...
Resolves #114
2020-09-08 21:17:09 +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
991863594d
refactor: ♻️ two pow() overloads merged into one
...
Also fixes doxygen warnings.
2020-09-08 18:37:29 +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
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
Johel Ernesto Guerrero Peña
46761ea2f7
refactor: *_instantation_of to *_specialization_of
2020-09-06 22:52:01 +02:00
Mateusz Pusz
cacd3ae543
Non-zero denominator contract added for ratio
2020-09-06 15:35:52 +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
Mateusz Pusz
b318e8d039
VS2019 support added
2020-09-04 23:06:57 +02:00
Mateusz Pusz
71e3dba69a
symbol_text refactored
2020-09-04 22:48:36 +02:00