Skip to content

Commit

Permalink
Remove basic_json proxy type
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Nov 2, 2024
1 parent 5b55a96 commit de7f9f1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
0.178.0 (on master)
0.179.0 (on master)
-------

Changes:

- Removed `basic_json` proxy type. The rationale for this change is given in #315.

- The new behavior for the non-const overload of operator[](const string_view_type&) will follow the standard library
`std::map` behavior, that is, return a reference to the value that is associated with the 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&) will be to return
a const reference to the value that is associated with key, returning a const reference to a default
constructed value with static storage duration if no such key already exists.

0.178.0
-------

Defect fixes:
Expand Down
1 change: 1 addition & 0 deletions doc/ref/corelib/basic_json.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Member type |Definition
`const_object_range_type`|range<const_object_iterator,const_array_iterator> (since 0.173.3)
`array_range_type`|range<array_iterator,const_array_iterator> (since 0.173.3)
`const_array_range_type`|range<const_array_iterator,const_array_iterator> (since 0.173.3)
`proxy_type`|proxy<basic_json>. The `proxy_type` class supports conversion to `basic_json&`. (removed in 0.179.0)
### Static member functions
Expand Down
2 changes: 1 addition & 1 deletion doc/ref/corelib/json/operator_at.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ when this operator is used for reading but the key does not exist.

### Examples

#### Assigning to a proxy when the key does not exist
#### Assigning to and` object when the key does not exist

```cpp
int main()
Expand Down

0 comments on commit de7f9f1

Please sign in to comment.