destructor help - list of pointers to a struct

Hi all,

Need a little help understanding the destructor.

if i have a struct:

1
2
3
4
5
6
7
8
struct bunch_o_arrays{
     double array1[3];
    double array2[3];
    double array3[3]

// -etc-

};


and then populate a std::list<bunch_o_arrays*> using the new command, do I need a destructor to delete the arrays inside the struct?
Last edited on
No you need not. Otherwise what destructor would you use?
Topic archived. No new replies allowed.