4 Sep
2009
4 Sep
'09
6:54 p.m.
void visit(boost::static_visitor<> const& visitor) { BOOST_FOREACH(Attr attr, i_attrList) { boost::apply_visitor(visitor, attr); } }
Just for note, but considering that you are asking for a static_vistor directly, and you create a visitor by using the CRTP, this shows that you might want to learn a little bit more about how C++ handles classes before delving into too much more.
Could you explain what you mean? If by CRTP you mean the "curiously recurring template pattern," how does that apply here? The template parameter for static_visitor is its return type, not the type of the derived visitor. What specifically should I be focusing on learning more about here?