forked from mpusz/mp-units
style: more whitespace issues caused by rebase fixed
This commit is contained in:
@@ -148,6 +148,7 @@ public:
|
||||
{
|
||||
return quantity<quantity_spec[U{}], Rep>{*this};
|
||||
}
|
||||
|
||||
template<Unit U>
|
||||
requires requires(quantity q) { value_cast<U{}>(q); }
|
||||
[[nodiscard]] constexpr quantity<quantity_spec[U{}], Rep> force_in(U) const
|
||||
|
||||
@@ -159,7 +159,6 @@ template<Representation Rep, Reference R>
|
||||
template<Unit auto To, auto R, typename Rep>
|
||||
[[nodiscard]] constexpr quantity<detail::clone_reference_with<To>(R), Rep> floor(const quantity<R, Rep>& q) noexcept
|
||||
requires((!treat_as_floating_point<Rep>) || requires { floor(q.numerical_value_ref_in(q.unit)); } ||
|
||||
|
||||
requires { std::floor(q.numerical_value_ref_in(q.unit)); }) &&
|
||||
(To == get_unit(R) || requires {
|
||||
q.force_in(To);
|
||||
@@ -199,7 +198,6 @@ template<Unit auto To, auto R, typename Rep>
|
||||
template<Unit auto To, auto R, typename Rep>
|
||||
[[nodiscard]] constexpr quantity<detail::clone_reference_with<To>(R), Rep> ceil(const quantity<R, Rep>& q) noexcept
|
||||
requires((!treat_as_floating_point<Rep>) || requires { ceil(q.numerical_value_ref_in(q.unit)); } ||
|
||||
|
||||
requires { std::ceil(q.numerical_value_ref_in(q.unit)); }) &&
|
||||
(To == get_unit(R) || requires {
|
||||
q.force_in(To);
|
||||
@@ -241,7 +239,6 @@ template<Unit auto To, auto R, typename Rep>
|
||||
template<Unit auto To, auto R, typename Rep>
|
||||
[[nodiscard]] constexpr quantity<detail::clone_reference_with<To>(R), Rep> round(const quantity<R, Rep>& q) noexcept
|
||||
requires((!treat_as_floating_point<Rep>) || requires { round(q.numerical_value_ref_in(q.unit)); } ||
|
||||
|
||||
requires { std::round(q.numerical_value_ref_in(q.unit)); }) &&
|
||||
(To == get_unit(R) || requires {
|
||||
::mp_units::floor<To>(q);
|
||||
@@ -284,7 +281,6 @@ template<auto R1, typename Rep1, auto R2, typename Rep2>
|
||||
requires requires { common_reference(R1, R2); } &&
|
||||
(
|
||||
requires { hypot(x.numerical_value_ref_in(x.unit), y.numerical_value_ref_in(y.unit)); } ||
|
||||
|
||||
requires { std::hypot(x.numerical_value_ref_in(x.unit), y.numerical_value_ref_in(y.unit)); })
|
||||
{
|
||||
constexpr auto ref = common_reference(R1, R2);
|
||||
|
||||
Reference in New Issue
Block a user