This commit is contained in:
nlohmann
2026-10-03 05:43:12 +00:00
parent 2aaa1d24ef
commit a410b4f40f
741 changed files with 8115 additions and 2252 deletions
+2 -2
View File
@@ -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: