File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tests/std/tests/GH_005816_numeric_limits_traps Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 77
88#ifdef __clang__
99#pragma clang diagnostic ignored "-Wc++17-extensions" // constexpr if is a C++17 extension
10- #else
10+ #else // ^^^ defined(__clang__) / !defined(__clang__) vvv
1111#pragma warning(disable : 4984) // warning C4984: 'if constexpr' is a C++17 language extension
12- #endif // __clang__
12+ #endif // ^^^ !defined( __clang__) ^^^
1313
1414template <class T >
1515constexpr bool traps_ = std::numeric_limits<T>::traps;
@@ -21,9 +21,9 @@ static_assert(!traps_<float> && !traps_<double> && !traps_<long double>,
2121
2222static_assert (traps_<char > == traps_<int > && traps_<signed char > == traps_<int > && traps_<unsigned char > == traps_<int >
2323 && traps_<short > == traps_<int > && traps_<unsigned short > == traps_<int >
24- && traps_<unsigned int > == traps_<int > && traps_< long > == traps_< int >
25- && traps_<unsigned long > == traps_<int > && traps_<long long > == traps_<int >
26- && traps_<unsigned long long > == traps_<int >,
24+ && traps_<unsigned int > == traps_<int > //
25+ && traps_<long > == traps_<int > && traps_<unsigned long > == traps_<int >
26+ && traps_<long long > == traps_< int > && traps_< unsigned long long > == traps_<int >,
2727 " all integers should trap or not trap equally" );
2828
2929void trap_operation () {
You can’t perform that action at this time.
0 commit comments