Replies: 1 comment
-
py::implicitly_convertible !!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I try to obtain some automatic castings, here a very simple example. I'm looking for the function
funA
could also works with int/float attributes because there's the constructorA(double x)
. UnfortunatlyfunA(2)
doesn't work, i don't want to writefunA(example.A(2))
, do i miss something ?Thanks for helping.
Beta Was this translation helpful? Give feedback.
All reactions