Skip to content

Can't recognize std::vector<int> #1332

@noy1993

Description

@noy1993

Describe the bug
autocxx cannot recognize my std::vector<int>, but it can recognize std::vector<int32_t>. However, I want it to recognize int. What should I do?

To Reproduce

std::vector<int> createVector()
{
    return std::vector<int>{1, 2, 3};
}

I've received a createVector struct with the following comments:

autocxx bindings couldn't be generated: A C++ std::vector was found containing some type that cxx can't accommodate as a vector element (int)

Specifications

  • Version: autocxx = "0.26.0" cxx = "1.0.107" rustc 1.72.0
  • Platform: windows10 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions