-
This code throws an argument out of range exception
VectorDouble vd = new VectorDouble(30);
for (int i = 0; i < 30; i++)
vd.Add(9.9);
This is caused by the use of size() rather than capacity() to perform bounds checking.
void setitem(int index, const value_type& val) throw (std::out_of_range) {
if (index>=0 && indexsize())
(*$self)[index] =...
2009-12-15 15:20:18 UTC in SWIG
-
No longer relevant. as of swig 1.3.39.
2009-08-30 23:51:47 UTC in SWIG
-
You asked me to submit this patch during the earliest discussions of a generic vector wrapper. By the time I got it straightened out you had already implemented pretty much the same thing. After looking at the current version of swig I no longer think this patch is relevant and I'm going to delete it. One question though, why does the constructor in the current wrapper take an ICollection rather...
2009-08-30 23:43:58 UTC in SWIG