[C++-sig] Problem with Templated class and Boost.python

Arrakis Muadib marrakis at gmail.com
Fri Mar 31 21:52:00 CEST 2006


Hi,

I'm trying to create a binding for a small c++ class. I decided to
created directly with Boost.Python and did'nt use Pyste cause it's not
supported on my distro and I cannot make gccxml working.

Now I'm confronted with a class having a template parameter.

The signature is something like this:

template<typename T>
class A : virtual public B<T>
{
    T methodX() {...}
    ...
};

How can I map the template parameter to the boost.python class definition?

Thank you

Mathieu Leduc-Hamel



More information about the Cplusplus-sig mailing list