Acyclic Visitor C++
问题 I'm reading the book by Alexandrescu, and I've run into the Acyclic Visitor pattern. I think that it's possible to get rid of the macross that calls AcceptImpl method of the BaseVisitable class. Could you tell me, whether the following implementation bellow conforms the standard? class BaseVisitor { public: virtual ~BaseVisitor() {} }; template <class SpecificVisitable> class SpecificVisitor { public: virtual void Visit(SpecificVisitable& t) = 0; protected: ~SpecificVisitor() {} }; template