check in R-swig changes that implement vector conversions to and
from std::vector git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7d6da8d319
commit
800e00c9be
4 changed files with 297 additions and 5 deletions
|
|
@ -9,6 +9,10 @@ public:
|
|||
double bar(double w) {return w;};
|
||||
double bar(double *w) {return w[0];}
|
||||
double bar(std::vector<double> w) {return w[0];}
|
||||
|
||||
int bar_int(int w) {return w;}
|
||||
int bar_int(int *w) {return w[0];}
|
||||
int bar_int(std::vector<int> w) {return w[0];}
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue