From 30ffd90b2a971c26f41a2f14aa52d59add3adf0b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 2 Nov 2022 15:54:37 +0100 Subject: [PATCH] fixup! WIP: posts: add mutiple-dispatch-in-c++ --- content/posts/2022-06-07-multiple-dispatch-in-c++/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: