1. Learn how to correctly implement template method pattern in C++.
http://www.gotw.ca/publications/mill18.htm
2. Then, consider alternatives like strategy, factory or callback.
http://tech.puredanger.com/2007/07/03/pattern-hate-template/
3. Great overview and alternative implementation of traditional visitor pattern.
http://tech.puredanger.com/2007/07/16/visitor/
Leave a Reply