From 0f41dc09550d46d72c94203554c91e581a2928d3 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Sat, 23 Mar 2024 22:48:04 +0100 Subject: [PATCH 1/2] std::remove_cvref_t --- quantities/concepts.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quantities/concepts.hpp b/quantities/concepts.hpp index 3fb5de6853..63997f722d 100644 --- a/quantities/concepts.hpp +++ b/quantities/concepts.hpp @@ -54,7 +54,8 @@ concept real_affine_space = affine_space; // the former introduces ambiguities on Sign * Vector. template concept convertible_to_quantity = - std::integral || std::floating_point || + std::integral> || + std::floating_point> || is_instance_of_v>; } // namespace internal From de29d24a3e845b15b9444c27f56d74ab0294ae93 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Sat, 23 Mar 2024 23:34:28 +0100 Subject: [PATCH 2/2] latter --- quantities/concepts.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantities/concepts.hpp b/quantities/concepts.hpp index 63997f722d..230d231e16 100644 --- a/quantities/concepts.hpp +++ b/quantities/concepts.hpp @@ -51,7 +51,7 @@ concept real_affine_space = affine_space; // std::integral || std::floating_point rather than // std::convertible_to because -// the former introduces ambiguities on Sign * Vector. +// the latter introduces ambiguities on Sign * Vector. template concept convertible_to_quantity = std::integral> ||