@@ -125,6 +125,7 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
125
125
126
126
bool match (T actualValue) {
127
127
actual = actualValue;
128
+ #ifndef LIBC_COMPILER_IS_MSVC
128
129
if constexpr (cpp::is_complex_type_same<T, _Complex float >())
129
130
return matchComplex<float >();
130
131
else if constexpr (cpp::is_complex_type_same<T, _Complex double >())
@@ -134,14 +135,18 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
134
135
#ifdef LIBC_TYPES_HAS_CFLOAT16
135
136
else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
136
137
return matchComplex<float16>();
137
- #endif
138
+ #endif // LIBC_TYPES_HAS_CFLOAT16
138
139
#ifdef LIBC_TYPES_HAS_CFLOAT128
139
140
else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
140
141
return matchComplex<float128>();
141
- #endif
142
+ #endif // LIBC_TYPES_HAS_CFLOAT128
143
+ #else // LIBC_COMPILER_IS_MSVC
144
+ return true ;
145
+ #endif // LIBC_COMPILER_IS_MSVC
142
146
}
143
147
144
148
void explainError () override {
149
+ #ifndef LIBC_COMPILER_IS_MSVC
145
150
if constexpr (cpp::is_complex_type_same<T, _Complex float >())
146
151
return explainErrorComplex<float >();
147
152
else if constexpr (cpp::is_complex_type_same<T, _Complex double >())
@@ -151,11 +156,12 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
151
156
#ifdef LIBC_TYPES_HAS_CFLOAT16
152
157
else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
153
158
return explainErrorComplex<float16>();
154
- #endif
159
+ #endif // LIBC_TYPES_HAS_CFLOAT16
155
160
#ifdef LIBC_TYPES_HAS_CFLOAT128
156
161
else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
157
162
return explainErrorComplex<float128>();
158
- #endif
163
+ #endif // LIBC_TYPES_HAS_CFLOAT128
164
+ #endif // LIBC_COMPILER_IS_MSVC
159
165
}
160
166
};
161
167
0 commit comments