feat: 💥 from now on quantity specifications have to be marked as final

This commit is contained in:
Mateusz Pusz committed 2024-06-13 12:05:16 +02:00
1 parent 1f7a93c777
commit 5f67523a8a
15 files changed
+207 -166

No files matched your search

@@ -86,7 +86,7 @@ the `value_cast<U, Rep>(q)` which always returns the most precise result:
```cpp
inline constexpr struct dim_currency final : base_dimension<"$"> {} dim_currency;
inline constexpr struct currency : quantity_spec<dim_currency> {} currency;
inline constexpr struct currency final : quantity_spec<dim_currency> {} currency;
inline constexpr struct us_dollar final : named_unit<"USD", kind_of<currency>> {} us_dollar;
inline constexpr struct scaled_us_dollar final : named_unit<"USD_s", mag_power<10, -8> * us_dollar> {} scaled_us_dollar;
@@ -106,7 +106,7 @@ the `value_cast<U, Rep>(q)` which always returns the most precise result:
```cpp
inline constexpr struct dim_currency final : base_dimension<"$"> {} dim_currency;
inline constexpr struct currency : quantity_spec<currency, dim_currency> {} currency;
inline constexpr struct currency final : quantity_spec<currency, dim_currency> {} currency;
inline constexpr struct us_dollar final : named_unit<"USD", kind_of<currency>> {} us_dollar;
inline constexpr struct scaled_us_dollar final : named_unit<"USD_s", mag_power<10, -8> * us_dollar> {} scaled_us_dollar;