diff options
Diffstat (limited to 'Examples/test-suite/template_arg_typename.i')
-rw-r--r-- | Examples/test-suite/template_arg_typename.i | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Examples/test-suite/template_arg_typename.i b/Examples/test-suite/template_arg_typename.i new file mode 100644 index 000000000..0f4c88793 --- /dev/null +++ b/Examples/test-suite/template_arg_typename.i @@ -0,0 +1,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>; |