refactor: detail::same_scaled_units renamed to detail::compatible_units

This commit is contained in:
Mateusz Pusz committed 2022-05-23 20:47:29 +02:00
1 parent 768f400cc3
commit ef7e7c4cfc
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ struct derived_unit : downcast_dispatch<Child, scaled_unit<ratio(1), Child>> {};
* @tparam URest the units for the rest of dimensions from the recipe
*/
template<typename Child, DerivedDimension Dim, NamedUnit U, NamedUnit... URest>
requires detail::same_scaled_units<typename Dim::recipe, U, URest...>
requires detail::compatible_units<typename Dim::recipe, U, URest...>
struct derived_scaled_unit : downcast_dispatch<Child, detail::derived_scaled_unit<Dim, U, URest...>> {
static constexpr auto symbol = detail::derived_symbol_text<Dim, U, URest...>();
};