Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/template_ns2.i
2019-08-04 21:38:19 -05:00

17 lines
289 B
OpenEdge ABL

// Tests compilation of uninstantiated templates in a namespace
%module template_ns2
%inline %{
namespace foo {
template<class T> class bar {
};
bar<int> *test1(bar<int> *x) { return x; }
typedef int Integer;
bar<Integer *> *test2(bar<Integer *> *x) { return x; }
}
%}