Fixes #60
Turns out calling std::vector<T>.pop_back() on an empty vector is undefined behavior. In this case, it manifested as the vector size being set to -1 and thus set to the largest possible value size_t, so later attempts to serialize that vector of the entire memory of the computer did not succeed. Yet another reason to love C++! I can't wait for the world to be rid of this stupid language.
Fixes #60 Turns out calling
std::vector<T>.pop_back()
on an empty vector is undefined behavior. In this case, it manifested as the vector size being set to-1
and thus set to the largest possible valuesize_t
, so later attempts to serialize that vector of the entire memory of the computer did not succeed. Yet another reason to love C++! I can't wait for the world to be rid of this stupid language.