| 129 | return new Tiger(*this); // upcast |
| 130 | } |
| 131 | std::shared_ptr<Animal> clone_shared_ptr() const override { |
| 132 | return std::make_shared<Tiger>(*this); // upcast |
| 133 | } |
| 134 | std::unique_ptr<Animal> clone_unique_ptr() const override { |
| 135 | return std::unique_ptr<Tiger>(new Tiger(*this)); // upcast |
| 136 | } |
nothing calls this directly
no outgoing calls
no test coverage detected