3 Sep
2009
3 Sep
'09
4:34 p.m.
void visit(boost::static_visitor<> const& visitor) { BOOST_FOREACH(Attr attr, i_attrList) { boost::apply_visitor(visitor, attr); } }
You can define a template method: template<class Visitor> void visit(Visitor visitor) { BOOST_FOREACH(Attr attr, i_attrList) { boost::apply_visitor(visitor, attr); } }