Suppose I have an overload set, like so:
class C
{
public:
static void f(const A &);
static void f(const B &);
};
I'd like to do something like
std::variant<A, B> v;
// ...
std::visit(C::f, v);
but this doesn't compile. Is there some way of taking an overload set and regarding it as, or converting it to, a Visitor?