Skip to content

Properly expose std::vector in latest version of Pybind11 #2

@apalha

Description

@apalha

Summary

Pybind11 v2.10.0 fails to provide access to method std::vector::resize when exposing std::vector in python.

This issue does not show up in version v2.2.4 since Pybind11 source explicitly exposes this method (this has been removed/commented in latest version).

Reproducibility

This error shows up with the main DARTS code on macOS but not on linux. The example code in this folder of the repository reproduces the error both in macOS and linux.

Tasks

  1. Understand the correct way of exposing std::vector to python
  2. Identify why the main code does not have an issue in linux but the example has

Metadata

Metadata

Assignees

No one assigned

    Labels

    ONSETissue for onset project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions