I have a subclass called CardDeck, which extends a base class CardPile. In my default constructor in CardDeck, I create 52 const Card*'s, and call the addCard(crd) method from CardPile so that they are added to the state in CardPile. My CardPile has an empty destructor, since it never dynamically allocates memory, however, my CardDeck does(those 52 Card*'s). How should I go about coding my destructor to get rid of those cards from a state that's not even in CardDeck, it's in CardPile.
P.S. the state is a vector<const Card*>