Re: [PATCH 05/49] vec.h: add auto_delete_vec

2020-01-08 Thread Jeff Law
On Wed, 2019-12-18 at 10:59 -0500, David Malcolm wrote: > On Wed, 2019-12-04 at 09:29 -0700, Martin Sebor wrote: > > On 11/15/19 6:22 PM, David Malcolm wrote: > > > This patch adds a class auto_delete_vec, a subclass of auto_vec > > > > > > that deletes all of its elements on destruction; it's use

Re: [PATCH 05/49] vec.h: add auto_delete_vec

2019-12-18 Thread David Malcolm
On Wed, 2019-12-04 at 09:29 -0700, Martin Sebor wrote: > On 11/15/19 6:22 PM, David Malcolm wrote: > > This patch adds a class auto_delete_vec, a subclass of auto_vec > > > > that deletes all of its elements on destruction; it's used in many > > places later in the kit. > > > > This is a crude wa

Re: [PATCH 05/49] vec.h: add auto_delete_vec

2019-12-04 Thread Martin Sebor
On 11/15/19 6:22 PM, David Malcolm wrote: This patch adds a class auto_delete_vec, a subclass of auto_vec that deletes all of its elements on destruction; it's used in many places later in the kit. This is a crude way for a vec to "own" the objects it points to and clean up automatically (essen

[PATCH 05/49] vec.h: add auto_delete_vec

2019-11-15 Thread David Malcolm
This patch adds a class auto_delete_vec, a subclass of auto_vec that deletes all of its elements on destruction; it's used in many places later in the kit. This is a crude way for a vec to "own" the objects it points to and clean up automatically (essentially a workaround for not being able to us