Rule M12-1-1 (required, implementation, automated)

An object’s dynamic type shall not be used from the body of its constructor or destructor. See MISRA C++ 2008 [7] Note: This rule prohibits both direct and indirect usage of object’s dynamic type from its constructor or destructor.


## See also
C++ Core Guidelines [11]: C.50: Use a factory function if you need “virtual
behavior” during initialization.