forked from mpusz/mp-units
fix: MSVC bug workaround
This commit is contained in:
@@ -206,8 +206,9 @@ struct unit_interface {
|
|||||||
return is_same_v<Lhs, Rhs>;
|
return is_same_v<Lhs, Rhs>;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] friend consteval bool equivalent(Unit auto lhs, Unit auto rhs)
|
template<Unit Lhs, Unit Rhs>
|
||||||
requires(convertible(lhs, rhs))
|
requires(convertible(Lhs{}, Rhs{}))
|
||||||
|
[[nodiscard]] friend consteval bool equivalent(Lhs lhs, Rhs rhs)
|
||||||
{
|
{
|
||||||
return get_canonical_unit(lhs).mag == get_canonical_unit(rhs).mag;
|
return get_canonical_unit(lhs).mag == get_canonical_unit(rhs).mag;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user