diff --git a/content/posts/2022-06-07-multiple-dispatch-in-c++/index.md b/content/posts/2022-06-07-multiple-dispatch-in-c++/index.md index b2377bf..c85088e 100644 --- a/content/posts/2022-06-07-multiple-dispatch-in-c++/index.md +++ b/content/posts/2022-06-07-multiple-dispatch-in-c++/index.md @@ -161,8 +161,8 @@ void collide(SpaceObject& first, SpaceObject& second) { }; int main() { - std::unique_ptr asteroid = std::make_unique(); - std::unique_ptr spaceship = std::make_unique(); + auto asteroid = std::make_unique(); + auto spaceship = std::make_unique(); collide(*asteroid, *spaceship); // Calls in order: