On Tue, 4 Oct 2022 at 20:53, Barath Kannan <barathwaj.kannan@gmail.com> wrote:

Which is why I'm inclined to agree with Arthur that people should just write their own erasure abstractions (and if possible, the standard should try to offer tools to make this easier) rather than standardising things like inplace_function and any_invocable.

Agreed. std::function doesn't work well for everybody, but neither will whatever else we come up with. The standard library can't cover every use case.