boostorg / multiprecision

Boost.Multiprecision
Boost Software License 1.0
194 stars 111 forks source link

std::has_denorm/std::has_denorm_loss are deprecated in c++23 #573

Closed wanghan02 closed 9 months ago

wanghan02 commented 9 months ago

std::has_denorm/std::has_denorm_loss are deprected in c++23. Latest VC++ 19.38 gives warning about this with /std:c++latest /W4 where we specialize std::numeric_limits in boost::multiprecision.

https://godbolt.org/z/9Pdfre5Yc

'std::float_denorm_style': warning STL4042: std::float_denorm_style, std::numeric_limits::has_denorm, and std::numeric_limits::has_denorm_loss are deprecated in C++23. You can define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING or _SILENCE_ALL_CXX23_DEPRECATION_WARNINGS to suppress this warning.