From 3c8a0212f0afd99facd3b79b1e8208db7a190cd9 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 1 Jun 2024 13:20:15 +0200 Subject: [PATCH] fix: `system_reference::operator[]` --- src/core/include/mp-units/framework/system_reference.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/system_reference.h b/src/core/include/mp-units/framework/system_reference.h index bfc4b81a2..b4c202ecf 100644 --- a/src/core/include/mp-units/framework/system_reference.h +++ b/src/core/include/mp-units/framework/system_reference.h @@ -68,9 +68,9 @@ struct system_reference { template requires(convertible(coherent_unit, U{})) #if MP_UNITS_COMP_MSVC - [[nodiscard]] constexpr decltype(reference{}) operator[](U) const + [[nodiscard]] constexpr decltype(reference{}) operator[](U) const #else - [[nodiscard]] constexpr reference operator[](U) const + [[nodiscard]] constexpr reference operator[](U) const #endif { return {};