Do we need to define a destructor if the class has an std::vector in it?
If I define empty virtual destructors for both the based class and the derived class, will I get memory leak?
class fruit{
public:
uint32_t num_seed;
//virtual ~fruit(void){}
} ;
class spiky_apple: public fruit{
typedef std::vector<uint32_t> vector;
public:
vector spikes;
void bomb(void);
//spikes.reserve(2000)
//and then spikes[i] = xyz.
//virtual ~spiky_apple(void){}
} ;