[C++-sig] Re: Auto-Generation and BPL v2

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Nov 7 18:08:12 CET 2002


Hi,
Is there a plan for auto-generating bindings for template functions? Say I have
a function template <typename FloatType> FloatType foo(FloatType const&); how
would an auto-generating tool "know" what to use for FloatType? Sometimes I
need bindings for more than one type, e.g. for void bar(std::vector<FloatType>
const&). Another question is how to deal with class templates, e.g. template
<typename FloatType> class my_container; Here one has to decide what to call
the different Python types, e.g. my_container<float> -> my_container_float,
etc. (actually, I settled on creating a module my_container with types float,
double etc., leading to e.g. f = my_container.float()).
Ralf


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2




More information about the Cplusplus-sig mailing list