refactor: system_reference moved to a dedicated header file

This commit is contained in:
Mateusz Pusz committed 2022-11-09 18:33:39 -10:00
1 parent 9fd3d5dc3f
commit 649252d691
4 files changed
+48 -16

No files matched your search

-15
View File
@@ -107,21 +107,6 @@ template<Reference R1, Reference R2>
return interconvertible(R1::dimension, R2::dimension) && interconvertible(R1::unit, R2::unit);
}
template<Dimension auto Dim, Unit auto CoU>
requires(!detail::associated_unit<std::remove_const_t<decltype(CoU)>>)
struct system_reference {
static constexpr auto dimension = Dim;
static constexpr auto coherent_unit = CoU;
template<Unit U>
requires(interconvertible(coherent_unit, U{}))
[[nodiscard]] constexpr reference<dimension, U{}> operator[](U) const
{
return {};
}
};
} // namespace units
namespace std {