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
structGENPYBIND(visible) TopLevel
{
// already wrapped somewhere elsetypedef SomeComponents some_type GENPYBIND(opaque);
GENPYBIND_MANUAL({
auto ism = parent->py::is_method(attr);
auto attr = parent.attr("some_type");
attr.attr("to_numpy") = parent->py::cpp_function(/* code */, ism);
})
};
In some cases it might be nice to modify the wrapper code of some element contained in the wrapper code of a TopLevel class instead of adding the member dynamically via attr.
The text was updated successfully, but these errors were encountered:
In some cases it might be nice to modify the wrapper code of some element contained in the wrapper code of a
TopLevel
class instead of adding the member dynamically viaattr
.The text was updated successfully, but these errors were encountered: