import source from 1.3.40
[external/swig.git] / Examples / test-suite / template_const_ref.i
1 %module template_const_ref
2 %inline %{
3 template <class T> class Foo {
4 public:
5         char *bar(const T &obj) {
6             return (char *) "Foo::bar";
7         }
8 };
9 class Bar { };
10 %}
11
12 %template(Foob) Foo<const Bar *>;
13 %template(Fooi) Foo<const int *>;
14