We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a84d4 commit 145d45aCopy full SHA for 145d45a
libcxx/test/std/atomics/types.pass.cpp
@@ -80,9 +80,11 @@ void test() {
80
#if TEST_STD_VER >= 17
81
static_assert((std::is_same_v<typename A::value_type, T>), "");
82
#endif
83
- constexpr bool IntegralOrFloating =
84
- (std::is_integral<T>::value && !std::is_same<T, bool>::value) || std::is_floating_point<T>::value;
85
- constexpr bool Pointer = std::is_pointer<T>::value;
+ enum {
+ IntegralOrFloating =
+ (std::is_integral<T>::value && !std::is_same<T, bool>::value) || std::is_floating_point<T>::value
86
+ };
87
+ enum { Pointer = std::is_pointer<T>::value };
88
test_atomic<A, IntegralOrFloating, Pointer>();
89
}
90
0 commit comments