Make "visit" method pure virtual (needs to be implemented by subclass

to make sense).
This commit is contained in:
Daniel Aarno 2012-05-13 22:34:25 +02:00
parent f41dcb5ce3
commit b96e42cf76

View File

@ -43,9 +43,10 @@ class Visitor
virtual ~Visitor() { }
/**
* Does nothing. Should be overridden by child.
* This method (to implemented by children) will be
* called when the visitor is visited.
*/
virtual void visit() { }
virtual void visit() = 0;
};
}