feat: equality comparison support added for reference

This commit is contained in:
Mateusz Pusz
2021-04-08 18:54:49 +02:00
parent c545328be7
commit 0ac00534d6

View File

@@ -115,6 +115,11 @@ struct reference {
}
friend void /*Use `q * (1 * r)` rather than `q * r`.*/ operator*(Quantity auto, reference) = delete;
template<Reference R2>
[[nodiscard]] friend constexpr bool operator==(reference, R2) { return false; }
[[nodiscard]] friend constexpr bool operator==(reference, reference) { return true; }
};
// type traits