/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
- %module template_construct
- // Tests templates to make sure an extra <> in a constructor is ok.
- %inline %{
- template<class T>
- class Foo {
- T y;
- public:
- Foo<T>(T x) : y(x) { }
- };
- %}
- %template(Foo_int) Foo<int>;