Original Post
Hi , i'm new to STL classes so except from the question i will express , if you can recommend a good source from where i could read about STL Vectors\Lists\Ques etc i'd be very happy .
Now , code similar to this appears to give me a debug assertion failure :
struct asdf
{
int *a;
asdf();
~asdf();
void allocate(int num);
};
asdf::asdf(){ a = NULL; }
asdf::~asdf(){ if(a) { delete [] a;a = NULL; }}
void asdf::allocate(int num) { a = new int[num]; }
vector< asdf > gg;
asdf obj;
obj.Allocate(10);
gg.push_back(obj);
After the termination of the program , i get debug assertion failure , any ideas ?
Thank you all
[edited by - Joe Forhens on May 12, 2003 11:47:42 AM]