This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Remove a cleanup from call_function_by_hand_dummy


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]