From 5f833e68cebc0bdae18fa7b8a34e650ce8a48ba4 Mon Sep 17 00:00:00 2001 From: conrad Date: Thu, 10 Jul 2025 14:53:32 +1000 Subject: [PATCH] explicitly limit is_cx to std::complex and std::complex --- include/armadillo_bits/traits.hpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/include/armadillo_bits/traits.hpp b/include/armadillo_bits/traits.hpp index 11159712..7b925c34 100644 --- a/include/armadillo_bits/traits.hpp +++ b/include/armadillo_bits/traits.hpp @@ -1046,9 +1046,16 @@ struct is_cx static constexpr bool no = true; }; -// template<> -template -struct is_cx< std::complex > +template<> +struct is_cx< std::complex > + { + static constexpr bool value = true; + static constexpr bool yes = true; + static constexpr bool no = false; + }; + +template<> +struct is_cx< std::complex > { static constexpr bool value = true; static constexpr bool yes = true;