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
- Understand the correct way of exposing
std::vector to python
- Identify why the main code does not have an issue in linux but the example has