From 0b961dc71c60808a401c5f9c6a1c12a05a1d6900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Sun, 21 Feb 2021 17:10:35 -0400 Subject: [PATCH] fix: check selective QuantityValue requirements --- src/include/units/one_rep.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/units/one_rep.h b/src/include/units/one_rep.h index 1512420e..bbb306b9 100644 --- a/src/include/units/one_rep.h +++ b/src/include/units/one_rep.h @@ -83,7 +83,9 @@ struct one_rep { [[nodiscard]] friend constexpr Rep operator/(one_rep, const Rep&) = delete; template - requires requires { quantity_values::one(); } + requires requires { quantity_values::one(); requires !Quantity && // TODO: Replace with `QuantityValue` + !QuantityLike && // when Clang catches up. + !wrapped_quantity_; } [[nodiscard]] constexpr operator Rep() const noexcept { return quantity_values::one();