I have been working on a C++ bindings generator in a fork at https://github.com/cpetig/wit-bindgen for some time.
After a rewrite the code is less clumsy and could be considered for merging upstream once tests pass for more data types.
Please note that this generator is intended for host bindings (WAMR) as well and prefers most modern C++ wherever helpful. You can take a look at the intended API in https://github.com/cpetig/wit-bindgen/blob/main/crates/cpp/DESIGN.md .
I have been working on a C++ bindings generator in a fork at https://github.com/cpetig/wit-bindgen for some time.
After a rewrite the code is less clumsy and could be considered for merging upstream once tests pass for more data types.
Please note that this generator is intended for host bindings (WAMR) as well and prefers most modern C++ wherever helpful. You can take a look at the intended API in https://github.com/cpetig/wit-bindgen/blob/main/crates/cpp/DESIGN.md .