mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 13:44:27 +02:00
style: formatting updated to make pre-commit happy
This commit is contained in:
@@ -98,7 +98,7 @@ struct ratio {
|
||||
detail::safe_multiply(lhs.den / gcd2, rhs.den / gcd1)};
|
||||
}
|
||||
|
||||
[[nodiscard]] friend consteval ratio operator/(ratio lhs, ratio rhs) { return lhs* ratio{rhs.den, rhs.num}; }
|
||||
[[nodiscard]] friend consteval ratio operator/(ratio lhs, ratio rhs) { return lhs * ratio{rhs.den, rhs.num}; }
|
||||
};
|
||||
|
||||
[[nodiscard]] consteval bool is_integral(ratio r) { return r.num % r.den == 0; }
|
||||
|
Reference in New Issue
Block a user