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

Roman Yakovenko roman.yakovenko at gmail.com
Fri Mar 31 22:07:31 CEST 2006


On 3/31/06, Arrakis Muadib <marrakis at gmail.com> wrote:
> Hi,

> 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?

You can not export the template itself. You can only export it's instantiations.

> Thank you
>
> Mathieu Leduc-Hamel

--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list