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