Closed DarkSoulEater closed 7 months ago
= default is bad too
= default is bad too
Why though? It's the same as empty destructor, isn't it?
= default is bad too
Why though? It's the same as empty destructor, isn't it?
I'm not sure if it's always like this. I think {} is clearer. Moreover, =default seemed to cause some kind of compilation error for me.
I think this section says that default
-ed destructor is exactly what we need - a destructor that performs no action. = default
seems clearer for me, and it seems to be interchangeable with {}
, so I think we can use both.
It is necessary to make all virtual destructors equal to {}, and not = 0