Skip to content

Commit

Permalink
fix: system_reference::operator[]
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jun 1, 2024
1 parent 1c5b8de commit 3c8a021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/mp-units/framework/system_reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ struct system_reference {
template<Unit U>
requires(convertible(coherent_unit, U{}))
#if MP_UNITS_COMP_MSVC
[[nodiscard]] constexpr decltype(reference<MP_UNITS_REMOVE_CONST(decltype(quantity_spec)), U>{}) operator[](U) const
[[nodiscard]] constexpr decltype(reference<MP_UNITS_REMOVE_CONST(decltype(Q)), U>{}) operator[](U) const
#else
[[nodiscard]] constexpr reference<MP_UNITS_REMOVE_CONST(decltype(quantity_spec)), U> operator[](U) const
[[nodiscard]] constexpr reference<MP_UNITS_REMOVE_CONST(decltype(Q)), U> operator[](U) const
#endif
{
return {};
Expand Down

0 comments on commit 3c8a021

Please sign in to comment.