replace a static_visitor with the new visit function template
replace another static_visitor with visit