Handle length_error exceptions in Java std::vector::reserve

This commit is contained in:
William S Fulton 2017-06-26 12:46:22 +01:00
commit 3af40e7423

View file

@ -77,7 +77,7 @@ SWIGINTERN jint SWIG_VectorSize(size_t size) {
vector();
vector(const vector &other);
size_type capacity() const;
void reserve(size_type n);
void reserve(size_type n) throw (std::length_error);
%rename(isEmpty) empty;
bool empty() const;
void clear();