diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index f0d34909c..e0a3e2767 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -98,9 +98,9 @@ class binary_reader using char_type = typename InputAdapterType::char_type; using char_int_type = typename char_traits::int_type; - /// whether the input is a contiguous block of bytes that BON8 strings can - /// be copied from in bulk; see @ref get_bon8_string_bulk - static constexpr bool bon8_bulk_scan = + /// whether the input is a contiguous block of bytes that can be inspected + /// and consumed in bulk (as in the lexer); used by @ref get_bon8_string_bulk + static constexpr bool bulk_scan = input_adapter_supports_bulk_scan(is_detected {}); public: @@ -3647,7 +3647,7 @@ class binary_reader { while (true) { - get_bon8_string_bulk(result, std::integral_constant {}); + get_bon8_string_bulk(result, std::integral_constant {}); const auto byte = get_bon8(); diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 6092172cc..1f9228509 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -12617,9 +12617,9 @@ class binary_reader using char_type = typename InputAdapterType::char_type; using char_int_type = typename char_traits::int_type; - /// whether the input is a contiguous block of bytes that BON8 strings can - /// be copied from in bulk; see @ref get_bon8_string_bulk - static constexpr bool bon8_bulk_scan = + /// whether the input is a contiguous block of bytes that can be inspected + /// and consumed in bulk (as in the lexer); used by @ref get_bon8_string_bulk + static constexpr bool bulk_scan = input_adapter_supports_bulk_scan(is_detected {}); public: @@ -16166,7 +16166,7 @@ class binary_reader { while (true) { - get_bon8_string_bulk(result, std::integral_constant {}); + get_bon8_string_bulk(result, std::integral_constant {}); const auto byte = get_bon8();