From a33af0a51bdc78948183958d1ee548aebaf00459 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 6 Nov 2026 08:40:38 +0100 Subject: [PATCH] Binary readers: keep the tag argument of append_from_block() astyle-proof Signed-off-by: Niels Lohmann --- include/nlohmann/detail/input/binary_reader.hpp | 3 ++- single_include/nlohmann/json.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 9493b1ec8..754a484a5 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -4889,7 +4889,8 @@ class binary_reader { // a string that is in the block of input as a whole is appended from // it, without the zero-filling resize() below - if (append_from_block(len, result, std::integral_constant < bool, bulk_scan && std::is_same::value > {})) + constexpr bool from_block = bulk_scan && std::is_same::value; + if (append_from_block(len, result, std::integral_constant {})) { return true; } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index aeb12e87b..e171ec85d 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -22905,7 +22905,8 @@ class binary_reader { // a string that is in the block of input as a whole is appended from // it, without the zero-filling resize() below - if (append_from_block(len, result, std::integral_constant < bool, bulk_scan && std::is_same::value > {})) + constexpr bool from_block = bulk_scan && std::is_same::value; + if (append_from_block(len, result, std::integral_constant {})) { return true; }