Re: A simple question about virtual destructors.

2016-06-02 Thread K
On 06/02/16 13:14, Marcin Baczyński wrote: 2016-06-02 11:55 GMT+02:00 K : Hi, My question is what if a compiler will generate a virtual destructor (or convert a nonvirtual to virtual) in a base class if the base class has at least one virtual function and classes down in the hierarchy have no

Re: A simple question about virtual destructors.

2016-06-02 Thread Marcin Baczyński
2016-06-02 11:55 GMT+02:00 K : > Hi, > > My question is what if a compiler will generate a virtual destructor (or > convert a nonvirtual to virtual) in a base class if the base class has at > least one virtual function and classes down in the hierarchy have > nontrivial destructors? In other word

A simple question about virtual destructors.

2016-06-02 Thread K
Hi, My question is what if a compiler will generate a virtual destructor (or convert a nonvirtual to virtual) in a base class if the base class has at least one virtual function and classes down in the hierarchy have nontrivial destructors? In other words make a compiler responsible for pro