feat: system's definition highly simplified by removing the need for a system_reference for most cases

This commit is contained in:
Mateusz Pusz committed 2022-10-25 07:27:08 +02:00
1 parent 8dcdc7bdac
commit cb861dd81a
24 files changed
+779 -780

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ inline constexpr auto make_quantity = [](Representation auto&& v) {
};
template<typename T>
concept quantity_one = Quantity<T> && (T::dimension == one_dim) && (T::unit == one);
concept quantity_one = Quantity<T> && (T::dimension == dimensionless) && (T::unit == one);
} // namespace detail
@@ -506,7 +506,7 @@ template<Quantity Q1, Quantity Q2>
template<Quantity Q1, Quantity Q2>
requires(!floating_point_<typename Q1::rep>) && (!floating_point_<typename Q2::rep>) &&
(std::convertible_to<Q2, Q1> || quantity_of<Q2, one_dim>) &&
(std::convertible_to<Q2, Q1> || quantity_of<Q2, dimensionless>) &&
(quantity_value_for_<std::modulus<>, typename Q1::rep, typename Q2::rep>)
[[nodiscard]] constexpr Quantity auto operator%(const Q1& lhs, const Q2& rhs)
{