blob: a6e8c3c333f89db410b2554bc0296f753d66d43c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
%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>;
|