/tags/rel-1-3-25/SWIG/Examples/test-suite/template_construct.i
Swig | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | 56242306018da5a63c1ddcd9e0e3f04c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1%module template_construct 2 3// Tests templates to make sure an extra <> in a constructor is ok. 4 5%inline %{ 6template<class T> 7class Foo { 8 T y; 9public: 10 Foo<T>(T x) : y(x) { } 11}; 12 13%} 14 15%template(Foo_int) Foo<int>;