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
It is not uncommon pattern for allowing chained member-function invocation. What return policy should be used when I want to wrap cls::foo using pybind11? Is automatic suitable for this case? Unfortunately, the documentation lacks of this common example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Lets imaging the following C++ code:
It is not uncommon pattern for allowing chained member-function invocation. What return policy should be used when I want to wrap
cls::foo
usingpybind11
? Isautomatic
suitable for this case? Unfortunately, the documentation lacks of this common example.Beta Was this translation helpful? Give feedback.
All reactions