mirror of
https://github.com/nlohmann/json.git
synced 2026-09-01 05:57:14 +00:00
std::vector::resize(n) (and string_t's resize) is required to make size() exactly n; only capacity() is permitted to overshoot. The destination-size assert in get_bytes should reflect that exact guarantee rather than a weaker `>=`. Signed-off-by: Niels Lohmann <mail@nlohmann.me> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>