You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Building the same code with a make file does not have this issue, but with cmake has this issue. We still want to understand why is this occurring on cmake (which flags are used there that break pybind11, especially since these flags are added by pybind11 module in cmake).
Summary
Pybind11
v2.10.0
fails to provide access to methodstd::vector::resize
when exposingstd::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
std::vector
to pythonThe text was updated successfully, but these errors were encountered: