scilab: template example same as in other languages

This commit is contained in:
Simon Marchetto 2014-07-24 17:25:58 +02:00
commit 98d823face
5 changed files with 60 additions and 101 deletions

View file

@ -8,7 +8,10 @@
/* Let's just grab the original header file here */
%include "example.h"
%template(ShapeDouble) Shape<double>;
%template(CircleDouble) Circle<double>;
%template(SquareDouble) Square<double>;
/* Now instantiate some specific template declarations */
%template(maxint) max<int>;
%template(maxdouble) max<double>;
%template(vecint) vector<int>;
%template(vecdouble) vector<double>;