forked from mpusz/mp-units
refactor: unit_can_be_prefixed
trait refactored
This commit is contained in:
@@ -84,7 +84,7 @@ concept NamedUnit =
|
|||||||
* provided.
|
* provided.
|
||||||
*/
|
*/
|
||||||
template<Unit auto V>
|
template<Unit auto V>
|
||||||
inline constexpr bool unit_can_be_prefixed = detail::NamedUnit<std::remove_const_t<decltype(V)>>;
|
inline constexpr bool unit_can_be_prefixed = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief A concept to be used to define prefixes for a unit
|
* @brief A concept to be used to define prefixes for a unit
|
||||||
|
Reference in New Issue
Block a user