Fixed Perl std::vector::at problem with gcc < 3.0

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Luigi Ballabio 2003-09-11 08:19:27 +00:00
commit 768fa03144

View file

@ -140,7 +140,7 @@ namespace std {
SV **svs = new SV*[len];
for (unsigned int i=0; i<len; i++) {
svs[i] = sv_newmortal();
SWIG_MakePtr(svs[i], (void*)&($1.at(i)),
SWIG_MakePtr(svs[i], (void*)&($1[i]),
$descriptor(T *), 0);
}
AV *myav = av_make(len, svs);
@ -313,7 +313,7 @@ namespace std {
SV **svs = new SV*[len];
for (unsigned int i=0; i<len; i++) {
svs[i] = sv_newmortal();
FROM_T(svs[i], $1.at(i));
FROM_T(svs[i], $1[i]);
}
AV *myav = av_make(len, svs);
delete[] svs;