[RFA] Remove a cleanup from call_function_by_hand_dummy
Tom Tromey
tom@tromey.com
Sat Feb 17 20:47:00 GMT 2018
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> This should probably be resize instead of reserve. When you call
Simon> reserve, it doesn't change the actual length of the vector. You could
Simon> then use a def_vector to avoid unneeded zero-initialization by the
Simon> resize operation.
I think I get these mixed up 100% of the time :(
What's worse is I read the docs and I guess misunderstood them again.
Maybe I should avoid this entirely by using std::copy or something like
that.
Tom
More information about the Gdb-patches
mailing list