From cb9545769d61943e42c7960869253304eb35dd3b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 2 Nov 2022 15:52:38 +0100 Subject: [PATCH] fixup! WIP: posts: add mutiple-dispatch-in-c++ --- content/posts/2022-06-07-multiple-dispatch-in-c++/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c012b08..902149a 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 @@ -105,7 +105,7 @@ You can then write `PosixFilesystem` which makes use of the POSIX API and interact with actual on-disk data, `MockFilesystem` which only works in-memory and can be used for testing, etc... -## Double dispatch +## Double dispatch through the Visitor pattern Sometimes single dispatch is not enough, such as in the collision example at the beginning of this article. In cases where a computation depends on the