Implementation Challenge: Revisiting the visitor pattern
#virtual #visitor
http://foonathan.net/blog/2017/12/21/visitors.html
#virtual #visitor
http://foonathan.net/blog/2017/12/21/visitors.html
foonathan.net
Implementation Challenge: Revisiting the visitor pattern
The visitor pattern is a classical OOP pattern. It is used to solve the problem where you frequently want to add virtual functions to a class hierarchy, but rarely want to add new classes. However, it isn't particularly nice to use and doesn't fit the inheritance…