forked from mpusz/mp-units
refactor: 💥 basic_concepts, quantity and quantity_cast refactored
BREAKING CHANGE: ScalableNumber renamed to QuantityValue Resolves #107
This commit is contained in:
@@ -35,7 +35,7 @@ struct dim_angle : base_dimension<"A", U> {};
|
||||
template<typename T>
|
||||
concept Angle = QuantityOfT<T, dim_angle>;
|
||||
|
||||
template<Unit U, ScalableNumber Rep = double>
|
||||
template<UnitOf<dim_angle<>> U, QuantityValue Rep = double>
|
||||
using angle = quantity<dim_angle<>, U, Rep>;
|
||||
|
||||
inline namespace literals {
|
||||
|
||||
@@ -40,7 +40,7 @@ struct dim_one : derived_dimension<dim_one, one> {};
|
||||
template<typename T>
|
||||
concept Dimensionless = QuantityOf<T, dim_one>;
|
||||
|
||||
template<Unit U, ScalableNumber Rep = double>
|
||||
template<UnitOf<dim_one> U, QuantityValue Rep = double>
|
||||
using dimensionless = quantity<dim_one, U, Rep>;
|
||||
|
||||
} // namespace units
|
||||
|
||||
Reference in New Issue
Block a user