Yes, that's a pitfall and disadvantage of the Visitor pattern itself
when adding new node types.
The traversal is actually executing code compiled for
the base NodeVisitor (not your derived one) so your
"virtual void DerivedVisitor:apply(NewDerivedNode&)"
doesn't even exist in that context.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to