dimanche 4 septembre 2016

Has the modern c++ imply anything for virtual member functions

I been reading this as a quick walk through to c++11/14 its nice but the one thing is the below part

C++11 What does this imply? • Many classic coding rules no longerapplicable • “ Rule of Three - Canonical Class ” • virtualDestructor with virtual Members • manual memory management

I pretty much agree with the Rule of 3 and manual memory management as it is better to stick with smart pointers, Yet what does the virtual destructor and member function has to deal with the modern c++,I wonder is there anything that modern c++ could help us do better in case of places where we need virtual destructor and member function(except the override keyword), was I missed anything?

Aucun commentaire:

Enregistrer un commentaire