@@ -133,25 +133,25 @@ TEST(ArithmeticTypePromotion, Plus) {
133
133
static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , uint32_t , PlusOperator>::type, int64_t >);
134
134
static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , uint64_t , PlusOperator>::type, int64_t >);
135
135
// Mixed integral and floating point types should promote to the floating point type
136
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , float , PlusOperator>::type, double >);
137
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , float , PlusOperator>::type, double >);
138
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint32_t , float , PlusOperator>::type, double >);
139
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint64_t , float , PlusOperator>::type, double >);
140
-
141
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint8_t , PlusOperator>::type, double >);
142
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint16_t , PlusOperator>::type, double >);
143
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint32_t , PlusOperator>::type, double >);
144
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint64_t , PlusOperator>::type, double >);
145
-
146
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int8_t , float , PlusOperator>::type, double >);
147
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int16_t , float , PlusOperator>::type, double >);
148
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int32_t , float , PlusOperator>::type, double >);
149
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , float , PlusOperator>::type, double >);
150
-
151
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int8_t , PlusOperator>::type, double >);
152
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int16_t , PlusOperator>::type, double >);
153
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int32_t , PlusOperator>::type, double >);
154
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int64_t , PlusOperator>::type, double >);
136
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , float , PlusOperator>::type, float >);
137
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , float , PlusOperator>::type, float >);
138
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint32_t , float , PlusOperator>::type, float >);
139
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint64_t , float , PlusOperator>::type, float >);
140
+
141
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint8_t , PlusOperator>::type, float >);
142
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint16_t , PlusOperator>::type, float >);
143
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint32_t , PlusOperator>::type, float >);
144
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint64_t , PlusOperator>::type, float >);
145
+
146
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int8_t , float , PlusOperator>::type, float >);
147
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int16_t , float , PlusOperator>::type, float >);
148
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int32_t , float , PlusOperator>::type, float >);
149
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , float , PlusOperator>::type, float >);
150
+
151
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int8_t , PlusOperator>::type, float >);
152
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int16_t , PlusOperator>::type, float >);
153
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int32_t , PlusOperator>::type, float >);
154
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int64_t , PlusOperator>::type, float >);
155
155
156
156
static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , double , PlusOperator>::type, double >);
157
157
static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , double , PlusOperator>::type, double >);
@@ -262,25 +262,25 @@ TEST(ArithmeticTypePromotion, Minus) {
262
262
static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , uint32_t , MinusOperator>::type, int64_t >);
263
263
static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , uint64_t , MinusOperator>::type, int64_t >);
264
264
// Mixed integral and floating point types should promote to the floating point type
265
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , float , MinusOperator>::type, double >);
266
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , float , MinusOperator>::type, double >);
267
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint32_t , float , MinusOperator>::type, double >);
268
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint64_t , float , MinusOperator>::type, double >);
269
-
270
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint8_t , MinusOperator>::type, double >);
271
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint16_t , MinusOperator>::type, double >);
272
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint32_t , MinusOperator>::type, double >);
273
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint64_t , MinusOperator>::type, double >);
274
-
275
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int8_t , float , MinusOperator>::type, double >);
276
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int16_t , float , MinusOperator>::type, double >);
277
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int32_t , float , MinusOperator>::type, double >);
278
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , float , MinusOperator>::type, double >);
279
-
280
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int8_t , MinusOperator>::type, double >);
281
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int16_t , MinusOperator>::type, double >);
282
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int32_t , MinusOperator>::type, double >);
283
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int64_t , MinusOperator>::type, double >);
265
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , float , MinusOperator>::type, float >);
266
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , float , MinusOperator>::type, float >);
267
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint32_t , float , MinusOperator>::type, float >);
268
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint64_t , float , MinusOperator>::type, float >);
269
+
270
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint8_t , MinusOperator>::type, float >);
271
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint16_t , MinusOperator>::type, float >);
272
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint32_t , MinusOperator>::type, float >);
273
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint64_t , MinusOperator>::type, float >);
274
+
275
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int8_t , float , MinusOperator>::type, float >);
276
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int16_t , float , MinusOperator>::type, float >);
277
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int32_t , float , MinusOperator>::type, float >);
278
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , float , MinusOperator>::type, float >);
279
+
280
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int8_t , MinusOperator>::type, float >);
281
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int16_t , MinusOperator>::type, float >);
282
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int32_t , MinusOperator>::type, float >);
283
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int64_t , MinusOperator>::type, float >);
284
284
285
285
static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , double , MinusOperator>::type, double >);
286
286
static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , double , MinusOperator>::type, double >);
@@ -391,25 +391,25 @@ TEST(ArithmeticTypePromotion, Times) {
391
391
static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , uint32_t , TimesOperator>::type, int64_t >);
392
392
static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , uint64_t , TimesOperator>::type, int64_t >);
393
393
// Mixed integral and floating point types should promote to the floating point type
394
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , float , TimesOperator>::type, double >);
395
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , float , TimesOperator>::type, double >);
396
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint32_t , float , TimesOperator>::type, double >);
397
- static_assert (std::is_same_v<type_arithmetic_promoted_type<uint64_t , float , TimesOperator>::type, double >);
398
-
399
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint8_t , TimesOperator>::type, double >);
400
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint16_t , TimesOperator>::type, double >);
401
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint32_t , TimesOperator>::type, double >);
402
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint64_t , TimesOperator>::type, double >);
403
-
404
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int8_t , float , TimesOperator>::type, double >);
405
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int16_t , float , TimesOperator>::type, double >);
406
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int32_t , float , TimesOperator>::type, double >);
407
- static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , float , TimesOperator>::type, double >);
408
-
409
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int8_t , TimesOperator>::type, double >);
410
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int16_t , TimesOperator>::type, double >);
411
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int32_t , TimesOperator>::type, double >);
412
- static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int64_t , TimesOperator>::type, double >);
394
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , float , TimesOperator>::type, float >);
395
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , float , TimesOperator>::type, float >);
396
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint32_t , float , TimesOperator>::type, float >);
397
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<uint64_t , float , TimesOperator>::type, float >);
398
+
399
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint8_t , TimesOperator>::type, float >);
400
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint16_t , TimesOperator>::type, float >);
401
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint32_t , TimesOperator>::type, float >);
402
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , uint64_t , TimesOperator>::type, float >);
403
+
404
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int8_t , float , TimesOperator>::type, float >);
405
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int16_t , float , TimesOperator>::type, float >);
406
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int32_t , float , TimesOperator>::type, float >);
407
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<int64_t , float , TimesOperator>::type, float >);
408
+
409
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int8_t , TimesOperator>::type, float >);
410
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int16_t , TimesOperator>::type, float >);
411
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int32_t , TimesOperator>::type, float >);
412
+ static_assert (std::is_same_v<type_arithmetic_promoted_type<float , int64_t , TimesOperator>::type, float >);
413
413
414
414
static_assert (std::is_same_v<type_arithmetic_promoted_type<uint8_t , double , TimesOperator>::type, double >);
415
415
static_assert (std::is_same_v<type_arithmetic_promoted_type<uint16_t , double , TimesOperator>::type, double >);
0 commit comments