forked from mpusz/mp-units
fix: system_reference::operator[]
This commit is contained in:
@@ -68,9 +68,9 @@ struct system_reference {
|
|||||||
template<Unit U>
|
template<Unit U>
|
||||||
requires(convertible(coherent_unit, U{}))
|
requires(convertible(coherent_unit, U{}))
|
||||||
#if MP_UNITS_COMP_MSVC
|
#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
|
#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
|
#endif
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
|
Reference in New Issue
Block a user