C++ Logo


Advanced search

Re: [isocpp-lib] std::function

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Tue, 4 Oct 2022 22:46:51 +0100
On Tue, 4 Oct 2022 at 20:53, Barath Kannan <barathwaj.kannan_at_[hidden]>

> 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

Received on 2022-10-04 21:47:04