Rule M5-2-3 (advisory, implementation, automated)
Casts from a base class to a derived class should not be performed on polymorphic types. See MISRA C++ 2008 [7] Note: Type is polymorphic if it declares or inherits at least one virtual function.
Rule M5-2-3 (advisory, implementation, automated)
Casts from a base class to a derived class should not be performed on polymorphic types. See MISRA C++ 2008 [7] Note: Type is polymorphic if it declares or inherits at least one virtual function.