Skip to content

Commit

Permalink
CHANGELOG update
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 25, 2024
1 parent 919540e commit be8590e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

- API Changes

- Non-const `basic_json::operator[]` no longer returns a proxy type. The rationale for this change is given in #315.
- Non-const `basic_json::operator[const string_view_type& key]` no longer returns a proxy type. The rationale for this change is given in Git Issue #315.
The new behavior for the non-const overload of `operator[](const string_view_type& key)` is consistent with the standard library
`std::map` behavior, that is, return a reference to the value that is associated with `key`, inserting a default
`std::map` behavior, which is to return a reference to the value that is associated with `key`, inserting a default
constructed value with the key if no such key already exists.
The new behavior for the const overload of `operator[](const string_view_type& key)` is to return
a const reference to the value that is associated with `key`, returning a const reference to a default
Expand Down

0 comments on commit be8590e

Please sign in to comment.