refactor: system_reference moved to a dedicated header file
This commit is contained in:
1 parent
9fd3d5dc3f
commit
649252d691
4 files changed
+48
-16
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user