8 Jul
2016
8 Jul
'16
5:07 p.m.
Vicente J. Botet Escriba
[...]
There is no problem for function objects.
Louis, I don't remember, does Hana overload accepts pointer to member or non-member functions?
`hana::overload` should work with pointers to non-member functions, but not with pointer to member functions, as it does not have any special logic for them. To support them, we'd have to call functions with `hana::apply` in the implementation, which could be prohibitively expensive in terms of compilation time (but probably not for `hana::overload` alone). Also, keep in mind that the Functional part of Hana is out of scope for the library and I'm looking forward to removing it in the future. Regards, Louis