I think I understood it now.
I have one more question regarding the SpinningCard: In my game, I have a vector of Cards (a own class that kind of combines 2 spinning cards to get an actual card (front+back)). I want to use std::random_shuffle on it, but I get this error with VC++:
std::random_shuffle(field.begin(), field.end());
error C2582: 'operator =' function is unavailable in 'hx::Misc::SpinningCard'
As I understand it, the default Copy-Assignment-Operator is not there (and the compiler can't provide one).
I am really unsure about how this function
SpinningCard& SpinningCard::operator=(const SpinningCard&);
would have to look like. Also, do I need a copy-constructor, too?
I would be very happy if someone could help me out with that, or maybe give me some alternatives where I don't need to define these.