...
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:
...
...
This compliant solution stores uses a vector of std::unique_ptr
smart pointers in the std::vector
, which objects, which eliminates the slicing problem:
...