/trunk/Examples/test-suite/template_arg_typename.i
Swig | 26 lines | 16 code | 10 blank | 0 comment | 0 complexity | af1b0a14da21cfe43b2b53f19c9b52b4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %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>;