%module copyctor %copyctor; %inline %{ struct Bar {}; struct Car {}; struct Foo { Foo() {} template Foo(const T* p) {} Foo(const Bar& other) {} }; struct Hoo { Hoo() {} template Hoo(const T* p) {} Hoo(const Bar& other) {} }; %} %template(Hoo) Hoo::Hoo;