mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
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>;
|
||||
|
||||
// Prefix
|
||||
namespace detail {
|
||||
|
||||
template<PrefixFamily PF, ratio R>
|
||||
struct prefix_base;
|
||||
|
||||
namespace detail {
|
||||
|
||||
struct is_derived_from_prefix_base_impl {
|
||||
template<typename PF, ratio 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`.
|
||||
*/
|
||||
template<typename T>
|
||||
// concept Prefix = detail::is_derived_from_prefix_base<T>;
|
||||
concept Prefix = true; // TODO: still some bug out there :-(
|
||||
concept Prefix = detail::is_derived_from_prefix_base<T>;
|
||||
|
||||
/**
|
||||
* @brief A concept matching unit's ratio
|
||||
|
Reference in New Issue
Block a user