[Bug 1194522] boost::apply_visitor: doesn't handle perfect forwarding