Commit e3697ba
committed
fix(cpp): const_cast map keys during lowering for ownership transfer
std::map keys are const, but the ABI lowering needs to call leak() on
string keys to transfer ownership to the flat buffer. Use const_cast
since the map is consumed during the lowering operation.1 parent 44cad6d commit e3697ba
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3560 | 3560 | | |
3561 | 3561 | | |
3562 | 3562 | | |
| 3563 | + | |
| 3564 | + | |
3563 | 3565 | | |
3564 | 3566 | | |
3565 | 3567 | | |
| |||
3571 | 3573 | | |
3572 | 3574 | | |
3573 | 3575 | | |
| 3576 | + | |
3574 | 3577 | | |
3575 | 3578 | | |
3576 | | - | |
| 3579 | + | |
3577 | 3580 | | |
| 3581 | + | |
3578 | 3582 | | |
3579 | 3583 | | |
3580 | 3584 | | |
| |||
0 commit comments