From 51941b4d3e4a14bbeb5c26f89891892ef23c246d Mon Sep 17 00:00:00 2001 From: ckormanyos Date: Thu, 4 Sep 2025 18:14:32 +0200 Subject: [PATCH] Remove all constexpr constraints str() method --- include/boost/multiprecision/cpp_double_fp.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/boost/multiprecision/cpp_double_fp.hpp b/include/boost/multiprecision/cpp_double_fp.hpp index 578e32e6..61bac104 100644 --- a/include/boost/multiprecision/cpp_double_fp.hpp +++ b/include/boost/multiprecision/cpp_double_fp.hpp @@ -886,9 +886,10 @@ class cpp_double_fp_backend } } - #if (defined(BOOST_CXX_VERSION) && (BOOST_CXX_VERSION >= 202002L)) - constexpr - #endif + // TBD: Exactly what compilers/language-standards are needed to make this constexpr? + // TBD: It odes not really become constexpr until we stop using an intermediate + // cpp_bin_float anyway. But I will leave this comment for future library evolution. + auto str(std::streamsize number_of_digits, const std::ios::fmtflags format_flags) const -> std::string { if (number_of_digits == 0)