mirror of https://github.com/swig/swig
18 lines
296 B
OpenEdge ABL
18 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>;
|
|
|