forked from mpusz/mp-units
fix: Prefix
This commit is contained in:
committed by
Mateusz Pusz
parent
c4aa67477c
commit
bc8632ee27
@@ -45,11 +45,11 @@ template<typename T>
|
|||||||
concept PrefixFamily = std::derived_from<T, prefix_family>;
|
concept PrefixFamily = std::derived_from<T, prefix_family>;
|
||||||
|
|
||||||
// Prefix
|
// Prefix
|
||||||
|
namespace detail {
|
||||||
|
|
||||||
template<PrefixFamily PF, ratio R>
|
template<PrefixFamily PF, ratio R>
|
||||||
struct prefix_base;
|
struct prefix_base;
|
||||||
|
|
||||||
namespace detail {
|
|
||||||
|
|
||||||
struct is_derived_from_prefix_base_impl {
|
struct is_derived_from_prefix_base_impl {
|
||||||
template<typename PF, ratio R>
|
template<typename PF, ratio R>
|
||||||
static constexpr std::true_type check_base(const prefix_base<PF, R>&);
|
static constexpr std::true_type check_base(const prefix_base<PF, R>&);
|
||||||
@@ -67,8 +67,7 @@ inline constexpr bool is_derived_from_prefix_base = decltype(is_derived_from_pre
|
|||||||
* Satisfied by all specializations of `prefix`.
|
* Satisfied by all specializations of `prefix`.
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
// concept Prefix = detail::is_derived_from_prefix_base<T>;
|
concept Prefix = detail::is_derived_from_prefix_base<T>;
|
||||||
concept Prefix = true; // TODO: still some bug out there :-(
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief A concept matching unit's ratio
|
* @brief A concept matching unit's ratio
|
||||||
|
Reference in New Issue
Block a user