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:
Joseph Wang 2012-03-29 16:32:51 +00:00
commit 800e00c9be
4 changed files with 297 additions and 5 deletions

View file

@ -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];}
};
%}