Issues with push_back in Opaque Wrapper for STL Containers in Pybind11 #4739
Unanswered
rameshdange5191
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made an opaque wrapper because https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html#making-opaque-types
I get no errors. But still push_back does not work entirely. I face the same issues as discussed in the first link. The required lines are as follows:
The source code from which I wrote the above can be found at: https://github.com/pybind/pybind11/blob/master/tests/test_opaque_types.cpp
Its required portions are:
I also asked on gitter. These are the links:
https://matrix.to/#/!vYqYcTzqekPEfQIxEf:gitter.im/$QgV4ba0NXRhZFEgoeaoHiwuLskewD4UK0QQSo-5OWEk?via=gitter.im&via=matrix.org
https://matrix.to/#/!vYqYcTzqekPEfQIxEf:gitter.im/$0hs-KRBBye8PGp-Jtrg4gyVDYpxFJJw5L_HRNNvMUUA?via=gitter.im&via=matrix.org
Beta Was this translation helpful? Give feedback.
All reactions