Witam,
mam vector:
vector<klasa *> vcrLista;
Tworzę kilka klas operatorem new (nothrow).
W destruktorze klasy, w której mam tę wektorową listę CodeGuard pokazuje mi: Resource type mismatch dla kodu:
unsigned int ile = vcrLista.size();
if(ile){
klasa * wezel = 0;
for(unsigned int i = 0; i < ile; i++){
wezel = vcrLista[i];
delete wezel; //<b>Tutaj pokazuje: Resource...</b>
wezel = 0;
}
vcrLista.clear(); // <b>Tutaj też ??!!</b>
}
Dlaczego?