Commit 7973af7
committed
fix: avoid copy-assign on const-key pairs in from_json for map types
std::transform + std::inserter on vector-backed ordered_map triggers element shifting code in GCC's <algorithm>, which requires pair::operator=.
That is deleted when the key is const (e.g. ordered_map<string, string>).
Replace with a range-for + emplace so no assignment is ever needed. Fix for the bug #51221 parent bc6bfc3 commit 7973af7
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
| 389 | + | |
394 | 390 | | |
395 | | - | |
396 | | - | |
| 391 | + | |
| 392 | + | |
397 | 393 | | |
398 | 394 | | |
399 | 395 | | |
| |||
0 commit comments