I met with a strange issue that derived class function can not access base class's protected member. Do you know why?
Here is the error message and code.
error C2248: 'base::~base' : cannot access protected member declared in class 'base'
base* b = new base;
class derived : public base
base* b = new derived;
delete b; // error in this line
thanks in advance,