fix: Prefix

This commit is contained in:
Johel Ernesto Guerrero Peña
2020-09-09 18:35:43 -04:00
committed by Mateusz Pusz
parent c4aa67477c
commit bc8632ee27

View File

@@ -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