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

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

View File

@@ -319,7 +319,7 @@ static_assert(invalid_getter_with_unit_conversion<quantity>);
///////////////////////////////////////
template<Reference auto R, basic_fixed_string additional_nttp_argument,
RepresentationOf<get_quantity_spec(R).character> Rep = double>
RepresentationOf<get_quantity_spec(R)> Rep = double>
struct child_quantity : quantity<R, Rep> {
using quantity_type = quantity<R, Rep>;
static constexpr auto reference = R;