diff --git a/src/core/include/mp-units/framework/quantity.h b/src/core/include/mp-units/framework/quantity.h index d0ead0e3..3eda7dfd 100644 --- a/src/core/include/mp-units/framework/quantity.h +++ b/src/core/include/mp-units/framework/quantity.h @@ -585,6 +585,7 @@ public: (!Reference) && detail::InvokeResultOf, const Value&, Rep> [[nodiscard]] friend constexpr Quantity auto operator/(const Value& val, const Q& q) { + MP_UNITS_EXPECTS_DEBUG(is_neq_zero(q)); return ::mp_units::quantity{val / q.numerical_value_ref_in(unit), ::mp_units::one / R}; }