[C++-sig] Re: implicitly_convertible
David Abrahams
dave at boost-consulting.com
Mon Feb 2 23:37:18 CET 2004
"aashish" <aashish at 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
More information about the Cplusplus-sig
mailing list