refactor: convertible() renamed to interconvertible()

This commit is contained in:
Mateusz Pusz committed 2022-11-08 10:57:05 -10:00
1 parent 3d1f339115
commit 61b88b919f
7 files changed
+58 -58

No files matched your search

+3 -3
View File
@@ -102,9 +102,9 @@ template<Representation Rep, Reference R>
void /*Use `q * (1 * r)` rather than `q * r`.*/ operator*(Quantity auto, Reference auto) = delete;
template<Reference R1, Reference R2>
[[nodiscard]] consteval bool convertible(R1, R2)
[[nodiscard]] consteval bool interconvertible(R1, R2)
{
return convertible(R1::dimension, R2::dimension) && convertible(R1::unit, R2::unit);
return interconvertible(R1::dimension, R2::dimension) && interconvertible(R1::unit, R2::unit);
}
@@ -115,7 +115,7 @@ struct system_reference {
static constexpr auto coherent_unit = CoU;
template<Unit U>
requires(convertible(coherent_unit, U{}))
requires(interconvertible(coherent_unit, U{}))
[[nodiscard]] constexpr reference<dimension, U{}> operator[](U) const
{
return {};