Quote:
Originally posted by -=SoKrA=-
Thanks for those links, blackrat, it turns out I don't have a copy constructor and I think my copy assignment operator isn't written correctly.
Right now I'm not where my code is so I'll have to wait a couple of days 'till I'm back and I can test it.
Well, EVERY class always has a copy constructor and an assignment operator. If you don't specify them, but use them, the compiler must auto-generate them. If shallow copies of the data are OK, then you don't need to make either. Else, you need to make both (and almost certainly a destructor too).