diff --git a/src/core/include/mp-units/quantity_spec.h b/src/core/include/mp-units/quantity_spec.h index 3873cd30..e66d2505 100644 --- a/src/core/include/mp-units/quantity_spec.h +++ b/src/core/include/mp-units/quantity_spec.h @@ -102,13 +102,13 @@ template struct quantity_spec_interface { #ifdef __cpp_explicit_this_parameter template U> - [[nodiscard]] consteval Reference auto operator[](this Self self, U u) const + [[nodiscard]] consteval Reference auto operator[](this Self self, U u) { return reference{}; } template - [[nodiscard]] constexpr Quantity auto operator()(this Self self, Q&& q) const + [[nodiscard]] constexpr Quantity auto operator()(this Self self, Q&& q) requires Quantity> && (explicitly_convertible(std::remove_reference_t::quantity_spec, self)) {