From 3d5659f0a06b68864a2daed145c0897a4b18c893 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Mon, 14 Sep 2026 00:02:41 +0200 Subject: [PATCH 1/2] Fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In file included from ./boost/json/detail/charconv/detail/fast_float/fast_float.hpp:11, from ./boost/json/detail/charconv/impl/from_chars.ipp:14, from ./boost/json/src.hpp:59: ./boost/json/detail/charconv/detail/fast_float/float_common.hpp:307:20: error: conflicting declaration ‘constexpr const boost::uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables::max_mantissa []’ [-Wtemplate-body] 307 | constexpr uint64_t binary_format_lookup_tables::max_mantissa[]; ./boost/json/detail/charconv/detail/fast_float/float_common.hpp:276:34: note: previous declaration as ‘constexpr const uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables::max_mantissa [24]’ 276 | static constexpr std::uint64_t max_mantissa[] = { Signed-off-by: Bernd Kuhls --- .../json/detail/charconv/detail/fast_float/float_common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/json/detail/charconv/detail/fast_float/float_common.hpp b/include/boost/json/detail/charconv/detail/fast_float/float_common.hpp index ef3114005..a280095e8 100644 --- a/include/boost/json/detail/charconv/detail/fast_float/float_common.hpp +++ b/include/boost/json/detail/charconv/detail/fast_float/float_common.hpp @@ -273,7 +273,7 @@ struct binary_format_lookup_tables { // Largest integer value v so that (5**index * v) <= 1<<53. // 0x10000000000000 == 1 << 53 - static constexpr std::uint64_t max_mantissa[] = { + static constexpr uint64_t max_mantissa[] = { UINT64_C(0x10000000000000), UINT64_C(0x10000000000000) / UINT64_C(5), UINT64_C(0x10000000000000) / (UINT64_C(5) * UINT64_C(5)), From d51809b279440cd681f8adc4c03e954775fcdf50 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Mon, 14 Sep 2026 00:13:03 +0200 Subject: [PATCH 2/2] Fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In file included from ./boost/json/src.hpp:46, from output/build/boost-1.92.0/libs/json/src/src.cpp:10: ./boost/json/impl/value_stack.ipp:435:1: error: no declaration matches ‘void boost::json::value_stack::push_int64(boost::int64_t)’ 435 | value_stack:: | ^~~~~~~~~~~ In file included from ./boost/json/detail/handler.hpp:18, from ./boost/json/parser.hpp:17, from ./boost/json.hpp:28, from ./boost/json/src.hpp:27: ./boost/json/value_stack.hpp:397:5: note: candidate is: ‘void boost::json::value_stack::push_int64(int64_t)’ 397 | push_int64( | ^~~~~~~~~~ ./boost/json/value_stack.hpp:101:7: note: ‘class boost::json::value_stack’ defined here 101 | class value_stack | ^~~~~~~~~~~ ./boost/json/impl/value_stack.ipp:443:1: error: no declaration matches ‘void boost::json::value_stack::push_uint64(boost::uint64_t)’ 443 | value_stack:: | ^~~~~~~~~~~ ./boost/json/value_stack.hpp:411:5: note: candidate is: ‘void boost::json::value_stack::push_uint64(uint64_t)’ 411 | push_uint64( | ^~~~~~~~~~~ ./boost/json/value_stack.hpp:101:7: note: ‘class boost::json::value_stack’ defined here 101 | class value_stack Signed-off-by: Bernd Kuhls --- include/boost/json/impl/value_stack.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/json/impl/value_stack.ipp b/include/boost/json/impl/value_stack.ipp index af1b107b2..4c3dbac23 100644 --- a/include/boost/json/impl/value_stack.ipp +++ b/include/boost/json/impl/value_stack.ipp @@ -434,7 +434,7 @@ push_string( void value_stack:: push_int64( - int64_t i) + std::int64_t i) { st_.push(i, sp_); } @@ -442,7 +442,7 @@ push_int64( void value_stack:: push_uint64( - uint64_t u) + std::uint64_t u) { st_.push(u, sp_); }