diff --git a/src/core/include/mp_units/quantity_point.h b/src/core/include/mp_units/quantity_point.h index 96fdf890..c1654020 100644 --- a/src/core/include/mp_units/quantity_point.h +++ b/src/core/include/mp_units/quantity_point.h @@ -133,6 +133,13 @@ public: return point_origin.absolute() + relative(); } + template + requires detail::QuantityConvertibleTo{}, Rep>> + [[nodiscard]] constexpr quantity_point<::mp_units::reference{}, PO, Rep> operator[](U) const + { + return quantity_point{*this}; + } + // member unary operators constexpr quantity_point& operator++() requires requires { ++q_; }