Skip to content

Commit ad6a32f

Browse files
committed
but Clang
1 parent e627022 commit ad6a32f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stl/inc/limits

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ struct _Num_int_base : _Num_base { // base for integer types
120120
static constexpr bool is_exact = true;
121121
static constexpr bool is_integer = true;
122122
static constexpr bool is_specialized = true;
123-
static constexpr bool traps = true;
124-
static constexpr int radix = 2;
123+
#if !defined(__clang__) || defined(__x86_64__) || defined(__i386__)
124+
static constexpr bool traps = true;
125+
#else // ^^^ not Clang or x64 or x86 / Clang and not x64 and not x86 vvv
126+
static constexpr bool traps = false;
127+
#endif // ^^^ Clang and not x64 and not x86 ^^^
128+
static constexpr int radix = 2;
125129
};
126130

127131
struct _Num_float_base : _Num_base { // base for floating-point types

0 commit comments

Comments
 (0)