[C++-sig] boost.python: implicit type conversion

Mihail Konstantinov kmihail at rocketmail.com
Tue Dec 2 20:31:02 CET 2008


> >    implicitly_convertible();

> >    implicitly_convertible();
> >}
> I see that an int can be implicitly converted to X. But how can an X be 
> converted to an int? I can't believe that boost.python searches all implemented 
> functions to find that make_x is capable of converting an int to X?

Found it. X::operator int() const. Apparently I need some sleep.

Thank you
Mihail



      



More information about the Cplusplus-sig mailing list