Fix boost::variant example to not forward args
boost::apply_visitor accepts its arguments by non-const lvalue reference, which fails to bind to an rvalue reference. Change the example to remove the argument forwarding.
Showing
Please
register
or
sign in
to comment