blob: 0f4c887933689a7b41007f0efc2ca3e6478fbd2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
%module template_arg_typename
%inline %{
template <class ArgType, class ResType>
struct UnaryFunction
{
typedef void* vptr_type;
};
template <class ArgType>
struct BoolUnaryFunction : UnaryFunction<ArgType, bool>
{
typedef UnaryFunction<ArgType, bool> base;
BoolUnaryFunction(const typename base::vptr_type* vptrf) {}
};
%}
%template(UnaryFunction_bool_bool) UnaryFunction<bool, bool>;
%template(BoolUnaryFunction_bool) BoolUnaryFunction<bool>;
|