explicitly limit is_cx to std::complex<float> and std::complex<double>

This commit is contained in:
conrad
2025-07-10 14:53:32 +10:00
parent 28d1515afa
commit 5f833e68ce
+10 -3
View File
@@ -1046,9 +1046,16 @@ struct is_cx
static constexpr bool no = true;
};
// template<>
template<typename T>
struct is_cx< std::complex<T> >
template<>
struct is_cx< std::complex<float> >
{
static constexpr bool value = true;
static constexpr bool yes = true;
static constexpr bool no = false;
};
template<>
struct is_cx< std::complex<double> >
{
static constexpr bool value = true;
static constexpr bool yes = true;