mirror of
https://github.com/nlohmann/json.git
synced 2026-10-21 21:48:14 +00:00
Since #5828, a stream adapter keeps the current token itself (mark_token_start() / copy_token()), so lazy_token_string no longer implies a seekable adapter. restart_token_string_impl(std::true_type) still called get_consumed_count(), which only seekable adapters have, and failed to compile for std::istream input. Dispatch on adapter_token as note_token_start() does. Signed-off-by: Niels Lohmann <mail@nlohmann.me>