feat: users are now allowed to inherit their ow types from absolute point origins

This commit is contained in:
Mateusz Pusz
2023-12-03 16:15:38 +01:00
parent 611e380ed4
commit da8721b997
11 changed files with 133 additions and 61 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ inline constexpr struct dim_currency : base_dimension<"$"> {} dim_currency;
QUANTITY_SPEC(currency, dim_currency);
constexpr struct zero : absolute_point_origin<currency> {} zero;
constexpr struct zero : absolute_point_origin<zero, currency> {} zero;
inline constexpr struct euro : named_unit<"EUR", kind_of<currency>> {} euro;
inline constexpr struct us_dollar : named_unit<"USD", kind_of<currency>> {} us_dollar;