blob: 196ca9005d0f8f2534fc38e5a8fe66250d0610f3 [file] [log] [blame]
%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 *>;