Mateusz Pusz
f37aa8bbd0
test: unused origin definition removed from concepts_test.cpp
2023-08-25 20:28:24 +02:00
Mateusz Pusz
6f1832ceb3
feat: BaseQuantitySpec concept removed as it had no use
2023-08-25 20:27:38 +02:00
Mateusz Pusz
71981172c3
feat: quantity_point does not take a default origin anymore + common_qs logic removed from the binary operators
2023-08-23 10:41:37 +02:00
Mateusz Pusz
1d822d0ea4
test: relative_point_origin construction simplified
2023-08-15 11:21:07 +02:00
Mateusz Pusz
b19bf0761c
feat: relative_point_origin support added
...
Relates to #414
2023-08-01 17:24:01 +02:00
Mateusz Pusz
1e81069d53
feat: absolute_point_origin convertibility removed
2023-08-01 11:53:50 +02:00
Mateusz Pusz
034d44eb3f
test: more concept tests added for dimensionless quantities
2023-06-13 17:35:43 +03:00
Mateusz Pusz
7a730fde58
refactor: constant_unit abstraction removed and replaced with regular named_unit
2023-06-05 19:36:22 +02:00
Mateusz Pusz
03b58ee073
refactor: square and cubic are now functions (not variable templates)
2023-06-01 08:45:41 +02:00
Mateusz Pusz
1a5f22f5c8
test: concepts test added
2023-05-30 12:04:32 +02:00
Chip Hogg
5fb468697b
Merge branch 'master' into chiphogg/switch-to-mag
2022-05-12 16:12:01 +00:00
Mateusz Pusz
32b36fb670
refactor: 💥 ! PrefixFamily support removed
...
It doesn't have much sense to restrict prefixes usage for most units and in many places we were wrong to do so already.
2022-05-11 11:59:33 +02:00
Chip Hogg
d19b2803ce
Migrate units from ratio to Magnitude
...
This commit is huge, but hopefully the cognitive load is not too bad.
The bulk of this commit is just some fairly mechanical updates from
`ratio` to `Magnitude`. Other things to call out:
- `UnitRatio` goes away. We don't need this concept, because Magnitude
can't even _represent_ anything that doesn't satisfy it.
- I commented out some formatting test cases where the precise
expression changes, but the number is completely equivalent. We will
need to decide how we want to handle Magnitude formatting as a
separate, follow-on task. But at least Magnitude gives us all the
tools we'll need to do so!
2022-04-11 15:16:16 +00:00
Mateusz Pusz
144f6951c0
style: all files refromatted with clang-format
2022-03-17 23:59:48 +01:00
Johel Ernesto Guerrero Peña
80eefec97c
fix: add quantity_point::origin, like std::chrono::time_point::clock
2021-06-29 20:44:27 +02:00
Mateusz Pusz
37cfc53d1d
refactor: IWYU applied to the source files
...
`alternative_namespaces` examples left out as I consider them a subject for removal in the nearest future.
2021-03-30 13:21:05 +02:00
Mateusz Pusz
88e642ec74
refactor: QuantityValue concept renamed to Representation
2021-03-19 07:53:18 +01:00
Mateusz Pusz
bbbb77286c
refactor: physical replaced with isq
...
Refers to #249
2021-03-16 12:03:25 +01:00
Mateusz Pusz
23720d055e
refactor: Refactored the library file tree
...
Resolves #249
2021-03-16 09:32:28 +01:00
Mateusz Pusz
d64d26a4c4
refactor: interoperability with quantity-like types simplified
...
Type trait specialization for each `quantity` type is not needed anymore.
Relates to #33 .
2020-10-07 14:29:12 +02:00
Mateusz Pusz
2dd8c90250
feat: ✨ interoperability with std::chrono::duration and other units libraries
...
Resolves #33
2020-10-07 12:02:08 +02:00
Mateusz Pusz
cfc90f4aac
refactor: 💥 basic_concepts, quantity and quantity_cast refactored
...
BREAKING CHANGE: ScalableNumber renamed to QuantityValue
Resolves #107
2020-10-06 18:17:52 +02:00