Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/template_const_ref.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

15 lines
238 B
OpenEdge ABL

%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 *>;