Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Compliant Solution

This compliant solution stores uses a vector of std::unique_ptr smart pointers in the std::vector, which  objects, which eliminates the slicing problem:

...