complete last commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a64fd9013e
commit
2b93511d17
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ namespace std {
|
|||
void set(int i, const value_type& val) throw (std::out_of_range) {
|
||||
int size = int(self->size());
|
||||
if (i>=0 && i<size)
|
||||
(*self)[i] = x;
|
||||
(*self)[i] = val;
|
||||
else
|
||||
throw std::out_of_range("vector index out of range");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue