summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/template_const_ref.i
blob: 196ca9005d0f8f2534fc38e5a8fe66250d0610f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%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 *>;