diff --git a/src/core/include/units/reference.h b/src/core/include/units/reference.h index 799d915d..85e9a18b 100644 --- a/src/core/include/units/reference.h +++ b/src/core/include/units/reference.h @@ -115,6 +115,11 @@ struct reference { } friend void /*Use `q * (1 * r)` rather than `q * r`.*/ operator*(Quantity auto, reference) = delete; + + template + [[nodiscard]] friend constexpr bool operator==(reference, R2) { return false; } + + [[nodiscard]] friend constexpr bool operator==(reference, reference) { return true; } }; // type traits