The "standard" way of doing this is to make functor
be a std::function
.
If you really want to store the actual binder object, then look at compile error messages involving the binder to figure out the exact type, and try using those to determine the actual type of the binder object.