blob: 1c3b46fbc7fd0c0baf1949d0613623d8bfe6d2c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
%module template_qualifier
/* Stroustruo, 3rd Ed, C.13.6 */
%inline %{
class X {
public:
template<int> X *xalloc() { return new X(); }
};
%}
%extend X {
%template(xalloc_int) xalloc<200>;
};
|