...
This noncompliant code example uses the same class definitions of Employee
and Manager
as in the previous examples noncompliant code example and attempts to store Employee
objects in a std::vector
. However, because std::vector
requires a homogeneous list of elements, slicing occurs.
...