swig/Examples/test-suite/template_using.i
Marcelo Matus 4633b86c61 add template+using test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-13 16:41:27 +00:00

17 lines
296 B
OpenEdge ABL

%module template_using
%inline
{
namespace foo {
template<typename T> class Foo { };
template<typename T> T maxk(T a, T b) { return a > b ? a : b; }
}
using foo::maxk;
}
%template(maxint) foo::maxk<int>;
%template(Foofloat) foo::Foo<float>;
%template(maxfloat) maxk<float>;