Skip to content

Commit 9833a4a

Browse files
committed
Product code fix
1 parent 2b4fb31 commit 9833a4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stl/inc/limits

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ 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 int radix = 2;
123+
#if defined(_M_IX86) || defined(_M_X64)
124+
static constexpr bool traps = true;
125+
#endif
126+
static constexpr int radix = 2;
124127
};
125128

126129
struct _Num_float_base : _Num_base { // base for floating-point types
@@ -178,6 +181,7 @@ public:
178181
return 0;
179182
}
180183

184+
static constexpr bool traps = false;
181185
static constexpr int digits = 1;
182186
};
183187

0 commit comments

Comments
 (0)