You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template<typename A>
struct void_unary {
void operator()(A a) { }
};
This is probably a low priority issue, but I've been wondering if we will ever want to support those. Right now the workaround is obviously to use a lambda wrapper.
The text was updated successfully, but these errors were encountered:
I assumed if lambdas worked, then regular (not templates) functors would too. As for templates, I think we should ask the caller so supply a list of types to instianciate the functor with, and dispatch the overloads afterwards? Would your type generator work in that kind of case?
Example functor:
This is probably a low priority issue, but I've been wondering if we will ever want to support those. Right now the workaround is obviously to use a lambda wrapper.
The text was updated successfully, but these errors were encountered: