I have a class hierarchy where I want to introduce a method template that would behave like if it was virtual. For example a simple hierarchy:
class A { vi
I think the only solution is the http://en.wikipedia.org/wiki/Visitor_pattern
See this topic: How to achieve "virtual template function" in C++