Date: Tue, 4 Oct 2022 22:46:51 +0100
On Tue, 4 Oct 2022 at 20:53, Barath Kannan <barathwaj.kannan_at_[hidden]>
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.
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.
Received on 2022-10-04 21:47:04