Skip to content

Non-POD structure constants #94

Open
@adetaylor

Description

@adetaylor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cpp-featureC++ feature not yet supported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions