Closed
Description
Both HString
and ComPtr<T>
should be pointer sized, since they are wrapping a pointer, but actually are bigger because of drop flags. This is a problem for arrays/slices, because an array of HSTRING
s should be transmutable to an array of HString
s, and the same for ComPtr
(element-wise conversion would be too expensive). This is why we currently expose raw types for arrays.
One possibility is #[unsafe_no_drop_flag]
, but this would not work on stable. Waiting for rust-lang/rust#34398 should also resolve the issue.
Metadata
Metadata
Assignees
Labels
No labels