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:
William S Fulton 2005-12-27 10:46:54 +00:00
commit 911613c92b

View file

@ -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;