Closed offa closed 6 years ago
The dtor of Nano::Observer is not virtual – shouldn't it be virtual?
Nano::Observer
Enabling Weffc++ for classes which inherit from Observer emit following warning (Gcc6):
Weffc++
Observer
error: base class ‘class Nano::Observer’ has accessible non-virtual destructor [-Werror=non-virtual-dtor]
Nano::Observer destructor should not be accessible due to being protected. I believe that alone is enough.
The dtor of
Nano::Observer
is not virtual – shouldn't it be virtual?Enabling
Weffc++
for classes which inherit fromObserver
emit following warning (Gcc6):