Files
json/docs/mkdocs/docs/api
Niels Lohmann 8f5dbb56c5 Swap diagnostic positions in basic_json::swap()
basic_json::swap() (and the friend swap() that forwards to it) only
exchanged m_data.m_type/m_data.m_value, leaving start_position/end_position
untouched under JSON_DIAGNOSTIC_POSITIONS. This is inconsistent with
copy-assignment's operator=(basic_json), which swaps positions as part of
its copy-and-swap implementation, so after swap(a, b) each value ended up
with the other value's content but its own original position.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-09-05 21:32:43 +02:00
..
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-07-09 17:24:19 +02:00
2026-06-29 22:15:18 +02:00
2026-07-04 11:13:25 +02:00