mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
feat: 💥 RepresentationOf
concept now also accepts a QuantitySpec
and accepts any representation character for quantity kinds
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user