From 5015d7c3e3fd217f7c27d38deea8df17cd463ea9 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 1 Aug 2023 17:25:15 +0200 Subject: [PATCH] fix: explicit `this` interfaces fixed for `quantity_spec` --- src/core/include/mp-units/quantity_spec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {