/trunk/Examples/test-suite/template_const_ref.i
# · Swig · 14 lines · 12 code · 2 blank · 0 comment · 0 complexity · fe5eb15c120ea547151158551968b4f5 MD5 · raw file
- %module template_const_ref
- %inline %{
- template <class T> class Foo {
- public:
- char *bar(const T &obj) {
- return (char *) "Foo::bar";
- }
- };
- class Bar { };
- %}
- %template(Foob) Foo<const Bar *>;
- %template(Fooi) Foo<const int *>;