#1317 template constructor of template class not recognized

open
nobody
None
5
2013-04-19
2013-04-19
Job
No

I get this warning while compiling the class below (with %template(MyClassImpl) MyClass<int, int="">;).
Warning 317: Specialization of non-template 'MyClass'.

I think SWIG is misinterpreting the template definition of the constructor as a specialization for the class template.

template <typename T, typename U>
struct MyClass
{
    template<typename P>
    MyClass<T,D>(P p)
    {
    }
};

Discussion