feat: 💥 RepresentationOf concept now also accepts a QuantitySpec and accepts any representation character for quantity kinds

This commit is contained in:
Mateusz Pusz committed 2024-11-07 18:39:32 +01:00
1 parent 75b50b8d2c
commit da50348115
14 files changed
+88 -76

No files matched your search

@@ -316,7 +316,7 @@ This is why a `quantity` class template is defined in the library as:
```cpp
template<Reference auto R,
RepresentationOf<get_quantity_spec(R).character> Rep = double>
RepresentationOf<get_quantity_spec(R)> Rep = double>
class quantity;
```
@@ -365,7 +365,7 @@ In the **mp-units** library, the quantity point is implemented as:
```cpp
template<Reference auto R,
PointOriginFor<get_quantity_spec(R)> auto PO,
RepresentationOf<get_quantity_spec(R).character> Rep = double>
RepresentationOf<get_quantity_spec(R)> Rep = double>
class quantity_point;
```