1 // Submitted by Marcelo Matus 2 %module template_ns_inherit 3 4 %inline %{ 5 namespace hello { 6 typedef double Double; 7 } 8 namespace hello 9 { 10 template <class ArgType, class ResType> 11 class VUnaryFunction 12 {}; 13 14 template <class ArgType, class ResType> 15 class UnaryFunction : public VUnaryFunction<ArgType, ResType> 16 {}; 17 } 18 19 %} 20 21 namespace hello 22 { 23 %template(VUnaryFunction_id) VUnaryFunction<int, Double>; 24 %template(UnaryFunction_id) UnaryFunction<int, Double>; 25 } 26 27 28 29 30 31