[Solved] Class destructor, runtime error: Unhandled exception – Stack overflow

[ad_1]

new Element called, therefore owned by List, so only List can delete Element. List_iter doesn’t require a destructor because it only contains a pointer.

[ad_2]

solved Class destructor, runtime error: Unhandled exception – Stack overflow