Error when reserve a large chunk in vector.h
ToverPomelo opened this issue · comments
0xffff-lib/src/collections/vector.h
Lines 101 to 105 in 37d47ff
For example:
Vec<char> vec;
vec.reserve(100000000000000); // reserve a large chunk,
vec.reserve(-1); // or reserve a negative chunk.
I suggest adding try catch in reallocate.
0xffff-lib/src/collections/vector.h
Line 85 in 37d47ff