Closed deltheil closed 8 years ago
i dont see any reason to prevent this really!
Allright! Will send a PR just in case.
Oops it was a little bit too fast. I changed by mistake the assert message: must be a strictly positive number
that should remain must be a positive number
. Can you revert or force push? Sorry about that.
Fixed by #19.
Any reason to prevent removing all elements from the vector via
vec:resize(0)
? (see this assert). Of course, as a workaround, one can do:vec:resize(1); vec:remove(1)
.Let me know what you think and I can send a PR (if there is any interest). Other possibilty: introduce a
clear
API: