From: Jeremy C. <jer...@gm...> - 2008-01-08 14:43:00
|
I have a class that looks like: template<typename S> class M{ ... S* M_method(S* const sr, int N); ... }; When I define the templated function M_Method everything works fine. The problem arises when I try to do template specialization for M_method(...); I need slightly different methods for typename H vs. typename B. Both H and B inherit from the virtual base class F. When I have specialization, I get an ImportError, it couldn't find the symbol "vtable for H". In my SWIG interface file I have: %template(M_B) M<B>; %template(M_H) M<H>; but that doesn't seem to make any difference. Everything in the documentation seemed to say that template specialization "just works". Is there something special I need to put in my SWIG interface file in order to use template specialization? Thanks, Jeremy |