Commit 3c38452
committed
fix(cpp): copy map keys by value instead of const_cast during lowering
const_cast fails when the map key type differs between contexts (e.g.
std::string_view in imports vs wit::string in exports). Copying by
value works universally and is safe since the map is consumed.1 parent e3697ba commit 3c38452
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3561 | 3561 | | |
3562 | 3562 | | |
3563 | 3563 | | |
3564 | | - | |
3565 | 3564 | | |
3566 | 3565 | | |
3567 | 3566 | | |
| |||
3574 | 3573 | | |
3575 | 3574 | | |
3576 | 3575 | | |
3577 | | - | |
3578 | | - | |
3579 | | - | |
3580 | | - | |
| 3576 | + | |
3581 | 3577 | | |
3582 | 3578 | | |
3583 | 3579 | | |
| |||
0 commit comments