@@ -43,8 +43,8 @@ public:
43
43
static constexpr bool has_infinity = false;
44
44
static constexpr bool has_quiet_NaN = false;
45
45
static constexpr bool has_signaling_NaN = false;
46
- static constexpr float_denorm_style has_denorm = denorm_absent;
47
- static constexpr bool has_denorm_loss = false;
46
+ static constexpr float_denorm_style has_denorm = denorm_absent; // deprecated in C++23
47
+ static constexpr bool has_denorm_loss = false; // deprecated in C++23
48
48
static constexpr T infinity() noexcept;
49
49
static constexpr T quiet_NaN() noexcept;
50
50
static constexpr T signaling_NaN() noexcept;
@@ -68,7 +68,7 @@ enum float_round_style
68
68
round_toward_neg_infinity = 3
69
69
};
70
70
71
- enum float_denorm_style
71
+ enum float_denorm_style // deprecated in C++23
72
72
{
73
73
denorm_indeterminate = -1,
74
74
denorm_absent = 0,
@@ -128,7 +128,7 @@ enum float_round_style
128
128
round_toward_neg_infinity = 3
129
129
};
130
130
131
- enum float_denorm_style
131
+ enum _LIBCPP_DEPRECATED_IN_CXX23 float_denorm_style
132
132
{
133
133
denorm_indeterminate = -1 ,
134
134
denorm_absent = 0 ,
@@ -164,8 +164,8 @@ protected:
164
164
static _LIBCPP_CONSTEXPR const bool has_infinity = false ;
165
165
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = false ;
166
166
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = false ;
167
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_absent;
168
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
167
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_absent;
168
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
169
169
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return type ();}
170
170
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return type ();}
171
171
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return type ();}
@@ -224,8 +224,8 @@ protected:
224
224
static _LIBCPP_CONSTEXPR const bool has_infinity = false ;
225
225
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = false ;
226
226
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = false ;
227
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_absent;
228
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
227
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_absent;
228
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
229
229
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return type (0 );}
230
230
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return type (0 );}
231
231
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return type (0 );}
@@ -277,8 +277,8 @@ protected:
277
277
static _LIBCPP_CONSTEXPR const bool has_infinity = false ;
278
278
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = false ;
279
279
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = false ;
280
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_absent;
281
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
280
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_absent;
281
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
282
282
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return type (0 );}
283
283
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return type (0 );}
284
284
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return type (0 );}
@@ -323,8 +323,8 @@ protected:
323
323
static _LIBCPP_CONSTEXPR const bool has_infinity = true ;
324
324
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = true ;
325
325
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = true ;
326
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_present;
327
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
326
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_present;
327
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
328
328
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __builtin_huge_valf ();}
329
329
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __builtin_nanf (" " );}
330
330
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __builtin_nansf (" " );}
@@ -373,8 +373,8 @@ protected:
373
373
static _LIBCPP_CONSTEXPR const bool has_infinity = true ;
374
374
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = true ;
375
375
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = true ;
376
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_present;
377
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
376
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_present;
377
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
378
378
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __builtin_huge_val ();}
379
379
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __builtin_nan (" " );}
380
380
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __builtin_nans (" " );}
@@ -423,8 +423,8 @@ protected:
423
423
static _LIBCPP_CONSTEXPR const bool has_infinity = true ;
424
424
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = true ;
425
425
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = true ;
426
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_present;
427
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
426
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = denorm_present;
427
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = false ;
428
428
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __builtin_huge_vall ();}
429
429
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __builtin_nanl (" " );}
430
430
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __builtin_nansl (" " );}
@@ -477,8 +477,10 @@ public:
477
477
static _LIBCPP_CONSTEXPR const bool has_infinity = __base::has_infinity;
478
478
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = __base::has_quiet_NaN;
479
479
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = __base::has_signaling_NaN;
480
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
481
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
480
+ _LIBCPP_SUPPRESS_DEPRECATED_PUSH
481
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
482
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
483
+ _LIBCPP_SUPPRESS_DEPRECATED_POP
482
484
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __base::infinity ();}
483
485
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __base::quiet_NaN ();}
484
486
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __base::signaling_NaN ();}
@@ -570,8 +572,10 @@ public:
570
572
static _LIBCPP_CONSTEXPR const bool has_infinity = __base::has_infinity;
571
573
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = __base::has_quiet_NaN;
572
574
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = __base::has_signaling_NaN;
573
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
574
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
575
+ _LIBCPP_SUPPRESS_DEPRECATED_PUSH
576
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
577
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
578
+ _LIBCPP_SUPPRESS_DEPRECATED_POP
575
579
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __base::infinity ();}
576
580
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __base::quiet_NaN ();}
577
581
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __base::signaling_NaN ();}
@@ -663,8 +667,10 @@ public:
663
667
static _LIBCPP_CONSTEXPR const bool has_infinity = __base::has_infinity;
664
668
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = __base::has_quiet_NaN;
665
669
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = __base::has_signaling_NaN;
666
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
667
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
670
+ _LIBCPP_SUPPRESS_DEPRECATED_PUSH
671
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
672
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
673
+ _LIBCPP_SUPPRESS_DEPRECATED_POP
668
674
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __base::infinity ();}
669
675
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __base::quiet_NaN ();}
670
676
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __base::signaling_NaN ();}
@@ -756,8 +762,10 @@ public:
756
762
static _LIBCPP_CONSTEXPR const bool has_infinity = __base::has_infinity;
757
763
static _LIBCPP_CONSTEXPR const bool has_quiet_NaN = __base::has_quiet_NaN;
758
764
static _LIBCPP_CONSTEXPR const bool has_signaling_NaN = __base::has_signaling_NaN;
759
- static _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
760
- static _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
765
+ _LIBCPP_SUPPRESS_DEPRECATED_PUSH
766
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const float_denorm_style has_denorm = __base::has_denorm;
767
+ static _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_CONSTEXPR const bool has_denorm_loss = __base::has_denorm_loss;
768
+ _LIBCPP_SUPPRESS_DEPRECATED_POP
761
769
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity () _NOEXCEPT {return __base::infinity ();}
762
770
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN () _NOEXCEPT {return __base::quiet_NaN ();}
763
771
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN () _NOEXCEPT {return __base::signaling_NaN ();}
0 commit comments