Feb. 2, 2004
10:37 p.m.
"aashish" <aashish@vrac.iastate.edu> writes:
Hi,
This might be a very simple question but I am wondering when I should use
implicitly_convertible as I found that in certain cases the coversion from Python type to C++ type is possible without using it.
implicitly_convertible isn't there just to enable Python->C++ conversions. Many built-in conversions work automatically. if there exists a conversion from Python type P -> C++ type C implicitly_convertible<C,D>(); will enable a conversion from Python type P -> C++ type D -- Dave Abrahams Boost Consulting www.boost-consulting.com