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
Even if we use overload_cast, Pybind11 will treat them as the same, so these two functions will not be distinguished in the generated Python interface.
Please refer to the explanation in the docs. pybind11 does overload resolution if you bind multiple functions to the same name in Python, but this is a distinct concept from overload_cast:
How can we overload the two functions like below?
Even if we use
overload_cast
, Pybind11 will treat them as the same, so these two functions will not be distinguished in the generated Python interface.Is there any solution to this problem?
Related discussion: #1625
The text was updated successfully, but these errors were encountered: