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
In boost python, BOOST_PYTHON_FUNCTION_OVERLOADS can match different overload functions automatically.
Do we have a similar way like boost python BOOST_PYTHON_FUNCTION_OVERLOADS?
For example, I have to add functions. In nanobind, it seems that both of them should be bound using nb::overload_cast?
int add(int a, int b)
{
return a + b;
}
float add(float a, float b)
{
return a + b;
}
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
-
In boost python, BOOST_PYTHON_FUNCTION_OVERLOADS can match different overload functions automatically.
Do we have a similar way like boost python BOOST_PYTHON_FUNCTION_OVERLOADS?
For example, I have to add functions. In nanobind, it seems that both of them should be bound using nb::overload_cast?
Beta Was this translation helpful? Give feedback.
All reactions