bytecodealliance / bytecodealliance/wit-bindgen

C++, Rust limitation: Fixed Size List code can't handle non-POD elements

Open
#1,501 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

Non-POD/Copy elements require a transmute to/from `[MaybeUninit, N]` and plenty of unsafe code to fill or extract the array element-wise.

In C++ you can use a union and placement new for creating the array.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.