diff --git a/src/core/include/mp-units/quantity_point.h b/src/core/include/mp-units/quantity_point.h index 16f8d62a..56829c29 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -83,6 +83,12 @@ public: quantity_type q_; // needs to be public for a structural type // static member functions + [[nodiscard]] static constexpr quantity_point zero() noexcept + requires requires { quantity_type::zero(); } + { + return quantity_point(quantity_type::zero()); + } + [[nodiscard]] static constexpr quantity_point min() noexcept requires requires { quantity_type::min(); } {