[C++-sig] implicit imports?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Tue Jun 11 20:05:36 CEST 2002


Let certain Boost.Python V2 bindings for std::vector be defined in a
std_vector extension module. E.g.:

import std_vector
d = std_vector.double()

Now suppose that other V2 extension modules contain functions that take
a std::vector<double> as an argument or return a std::vector<double>.
It is my understanding that the conversions from/to std::vector will
succeed if the user imports std_vector before any of these functions
is used, but will fail otherwise. Correct?

Is it possible to ensure that the conversions will succeed even if the
user does not explicitly import std_vector?

Thanks,
        Ralf


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com





More information about the Cplusplus-sig mailing list