mirror of
https://github.com/nlohmann/json.git
synced 2026-10-04 13:40:33 +00:00
deploy: 63c10a51fc
This commit is contained in:
@@ -70,7 +70,7 @@ The default value is `0` (disabled — existing behavior is preserved).
|
||||
|
||||
## Examples
|
||||
|
||||
??? example "Default behavior (macro not defined)"
|
||||
??? example "Example: default behavior (macro not defined)"
|
||||
|
||||
Without the macro, single-element brace initialization wraps the value in an array:
|
||||
|
||||
@@ -88,7 +88,7 @@ The default value is `0` (disabled — existing behavior is preserved).
|
||||
}
|
||||
```
|
||||
|
||||
??? example "Opt-in copy semantics (macro defined to 1)"
|
||||
??? example "Example: opt-in copy semantics (macro defined to 1)"
|
||||
|
||||
With the macro, single-element brace initialization copies/moves the value:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user