mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-07 06:04:27 +02:00
fix: ambiguity on common_reference
resolved
This commit is contained in:
@@ -158,8 +158,9 @@ template<AssociatedUnit U1, auto Q2, auto U2>
|
|||||||
return common_unit(u1, u2, rest...);
|
return common_unit(u1, u2, rest...);
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] consteval auto common_reference(Reference auto r1, Reference auto r2, Reference auto... rest)
|
template<Reference R1, Reference R2, Reference... Rest>
|
||||||
requires requires {
|
[[nodiscard]] consteval auto common_reference(R1 r1, R2 r2, Rest... rest)
|
||||||
|
requires(!(AssociatedUnit<R1> && AssociatedUnit<R2> && (... && AssociatedUnit<Rest>))) && requires {
|
||||||
{
|
{
|
||||||
common_quantity_spec(get_quantity_spec(r1), get_quantity_spec(r2), get_quantity_spec(rest)...)
|
common_quantity_spec(get_quantity_spec(r1), get_quantity_spec(r2), get_quantity_spec(rest)...)
|
||||||
} -> QuantitySpec;
|
} -> QuantitySpec;
|
||||||
|
Reference in New Issue
Block a user