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
Solved by using std::shared_ptr<ObjY> instead of raw pointer.
At first it didn't work because libX and libY used a different version of pybind11 (both projects had pybind11 as git submodule, checked out at different commits).
After matching pybind11 versions and switching to smart pointers, it worked out of the box. Great!
Hi all!
I am trying to accomplish a task similar to the one described by issue #616.
I have developed two independent C++ libraries: libX and libY. Each library has its own separate python3 binding written using pybind11.
ObjX
is defined in libX whileObjY
is defined in libY. libX includes and dynamically links libY.ObjX
has a methodgetInternalHandler
with the following signature:ObjY * ObjX::getInternalHandler()
ObjY has no copy constructor and cannot be copied. Is it possible to correctly bind
ObjX::getInternalHandler()
?Thank you all
The text was updated successfully, but these errors were encountered: