I'm on something : a.resize(-1) in previous code (previous message) lead to:
terminate called after throwing an instance of 'std::length_error'
what(): vector::_M_fill_insert
Abandon (core dumped)
Looks like vector does not like negative resize (due to promoting int(32
bits) to size_t after computation)
Post a reply to this message
|