autocxx icon indicating copy to clipboard operation
autocxx copied to clipboard

Non-POD structure constants

Open adetaylor opened this issue 4 years ago • 0 comments

A follow up from #93, much harder.

We need to figure out how to expose C++ constants which are types that cannot be represented in Rust by value.

We probably need to generate some C++ code which will return a UniquePtr to a copy of the constant. This assumes that the constant can be copied, and obviously has performance implications.

I'm adding an #[ignore]d test - test_non_pod_constant.

adetaylor avatar Nov 13 '20 21:11 adetaylor