template example working, sorry forgot to commit it earlier
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
811bf393a2
commit
ee4b63a60a
5 changed files with 120 additions and 0 deletions
17
SWIG/Examples/csharp/template/example.i
Normal file
17
SWIG/Examples/csharp/template/example.i
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/* File : example.i */
|
||||
%module example
|
||||
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
|
||||
/* Let's just grab the original header file here */
|
||||
%include "example.h"
|
||||
|
||||
/* Now instantiate some specific template declarations */
|
||||
|
||||
%template(maxint) max<int>;
|
||||
%template(maxdouble) max<double>;
|
||||
%template(vecint) vector<int>;
|
||||
%template(vecdouble) vector<double>;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue