From 184a4de8df0ea3dc79ba672c363e0afa2bb30118 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Sat, 23 Mar 2024 22:21:57 +0100 Subject: [PATCH] ambiguity --- quantities/concepts.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quantities/concepts.hpp b/quantities/concepts.hpp index 2b46b19bbf..6419da00dd 100644 --- a/quantities/concepts.hpp +++ b/quantities/concepts.hpp @@ -49,9 +49,12 @@ concept affine_space = requires(A x, A y) { template concept real_affine_space = affine_space; +// std::integral || std::floating_point rather than +// std::convertible_to because +// the former introduces ambiguities on Sign * Vector. template concept convertible_to_quantity = - std::convertible_to || + std::integral || std::floating_point || is_instance_of_v>; } // namespace internal