diff --git a/src/util/prometheus/impl/CounterImpl.h b/src/util/prometheus/impl/CounterImpl.h index c5982acaf..c3b58c2c5 100644 --- a/src/util/prometheus/impl/CounterImpl.h +++ b/src/util/prometheus/impl/CounterImpl.h @@ -30,7 +30,7 @@ namespace util::prometheus::detail { template concept SomeCounterImpl = requires(T a) { typename std::remove_cvref_t::ValueType; - SomeNumberType::ValueType>; + requires SomeNumberType::ValueType>; { a.add(typename std::remove_cvref_t::ValueType{1}) } -> std::same_as; diff --git a/src/util/prometheus/impl/HistogramImpl.h b/src/util/prometheus/impl/HistogramImpl.h index c1d914730..1254423c2 100644 --- a/src/util/prometheus/impl/HistogramImpl.h +++ b/src/util/prometheus/impl/HistogramImpl.h @@ -30,7 +30,7 @@ namespace util::prometheus::detail { template concept SomeHistogramImpl = requires(T t) { typename std::remove_cvref_t::ValueType; - SomeNumberType::ValueType>; + requires SomeNumberType::ValueType>; { t.observe(typename std::remove_cvref_t::ValueType{1}) } -> std::same_as;