Skip to content

Commit bfd4b3d

Browse files
authored
Merge pull request #320 from ckormanyos/deprecated_denorm_absent
Handle deprecated denorm_absent
2 parents 7220e4d + 4334212 commit bfd4b3d

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

math/wide_decimal/decwide_t.h

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 1999 - 2025. //
2+
// Copyright Christopher Kormanyos 1999 - 2026. //
33
// Distributed under the Boost Software License, //
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt //
55
// or copy at http://www.boost.org/LICENSE_1_0.txt) //
@@ -5519,7 +5519,15 @@
55195519
typename InternalFloatType,
55205520
typename ExponentType,
55215521
typename FftFloatType>
5522-
class numeric_limits<nonstd::wide_decimal_namespace::decwide_t<ParamDigitsBaseTen, LimbType, AllocatorType, InternalFloatType, ExponentType, FftFloatType>>
5522+
class numeric_limits
5523+
<
5524+
nonstd::wide_decimal_namespace::decwide_t<ParamDigitsBaseTen,
5525+
LimbType,
5526+
AllocatorType,
5527+
InternalFloatType,
5528+
ExponentType,
5529+
FftFloatType>
5530+
>
55235531
{
55245532
private:
55255533
using local_wide_decimal_type =
@@ -5545,7 +5553,19 @@
55455553
static constexpr auto has_infinity = false;
55465554
static constexpr auto has_quiet_NaN = false;
55475555
static constexpr auto has_signaling_NaN = false;
5556+
#ifdef _MSC_VER
5557+
# pragma warning(push)
5558+
# pragma warning(disable : 4996)
5559+
#elif (defined(__clang__) && (__clang_major__ >= 17))
5560+
# pragma clang diagnostic push
5561+
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
5562+
#endif
55485563
static constexpr auto has_denorm = static_cast<std::float_denorm_style>(std::denorm_absent);
5564+
#ifdef _MSC_VER
5565+
#pragma warning(pop)
5566+
#elif (defined(__clang__) && (__clang_major__ >= 17))
5567+
# pragma clang diagnostic pop
5568+
#endif
55495569
static constexpr auto has_denorm_loss = false;
55505570
static constexpr auto traps = false;
55515571
static constexpr auto tinyness_before = false;

0 commit comments

Comments
 (0)