
20 Sep
2008
20 Sep
'08
10:13 a.m.
Why not just add test_unit* tu_ptr = tu.second; and keep everything else the same.
Okay I tested this and it works: test_unit* tu_ptr = tu.second; if( test_id_2_unit_type( tu_ptr->p_id ) == tut_suite ) delete (test_suite const*)tu_ptr; else delete (test_case const*)tu_ptr;