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:
parent
3d8451e1b8
commit
768fa03144
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue