Disable some `constexpr` only for windows
@@ -61,8 +61,10 @@ public:
template <typename T>
__host__ __device__ __forceinline__
#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ >= 2))
+#ifndef _WIN32
constexpr
#endif
+#endif
bool _tuple_less(const tuple<size_t, T>& lhs,
const tuple<size_t, T>& rhs) {
const size_t& lhs_k = lhs.template get<0>();
@@ -93,8 +95,10 @@ bool _tuple_less(const tuple<size_t, T>& lhs,
template <typename T>
__host__ __device__ __forceinline__
#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ >= 2))
+#ifndef _WIN32
constexpr
#endif
+#endif
bool _cmp_less(const T& lhs, const T& rhs) {
bool lhsRe = isnan(lhs.real());
bool lhsIm = isnan(lhs.imag());
@@ -188,8 +192,10 @@ bool less< tuple<size_t, complex<double>> >::operator() (
template <typename T>
__host__ __device__ __forceinline__
#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ >= 2))
+#ifndef _WIN32
constexpr
#endif
+#endif
bool _real_less(const T& lhs, const T& rhs) {
#ifdef __CUDA_ARCH__
if (isnan(lhs)) {
