fixup! WIP: posts: add mutiple-dispatch-in-c++
This commit is contained in:
parent
ab2fd4bb69
commit
cb9545769d
|
@ -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
|
interact with actual on-disk data, `MockFilesystem` which only works in-memory
|
||||||
and can be used for testing, etc...
|
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
|
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
|
the beginning of this article. In cases where a computation depends on the
|
||||||
|
|
Loading…
Reference in a new issue