refactor: small unit_concepts.h cleanup

This commit is contained in:
Mateusz Pusz
2024-10-25 22:54:32 +02:00
parent d83cbc049f
commit 6ff77120a0
2 changed files with 3 additions and 7 deletions

View File

@@ -146,6 +146,9 @@ template<Unit From, Unit To>
return false;
}
template<typename... Expr>
struct derived_unit;
namespace detail {
struct unit_interface {

View File

@@ -60,13 +60,6 @@ MP_UNITS_EXPORT struct one;
MP_UNITS_EXPORT template<typename T>
concept PrefixableUnit = Unit<T> && is_derived_from_specialization_of_v<T, named_unit>;
template<typename... Expr>
struct derived_unit;
MP_UNITS_EXPORT template<symbol_text Symbol, Magnitude auto M, PrefixableUnit auto U>
requires(!Symbol.empty())
struct prefixed_unit;
namespace detail {
template<Unit U>