Add basic C++ test for template functions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13567 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Leif Middelschulte 2012-08-08 16:06:37 +00:00
commit 0a646835d2

View file

@ -0,0 +1,13 @@
%module cpp_basic_template_function
%inline
{
template <class T>
T GetMax (T a, T b) {
T result;
result = (a>b)? a : b;
return (result);
}
}
%template(GetMaxInt) GetMax<int>;