scilab: template example same as in other languages
This commit is contained in:
parent
f602d6209e
commit
98d823face
5 changed files with 60 additions and 101 deletions
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue