Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-03-27 17:58:03


Phil Endecott wrote:
> Peter Dimov wrote:
> > The goals of the library are
> > [...]
> > - Prepare a proposal to extend the standard with these same additions by
> > gathering experience in Boost first.
>
> Am I correct in thinking that this functionality could have been added to the
> standard library when std::bind was added in C++11, except that it requires
> something in the core language that was not added until C++14 ?

Return type deduction makes it easier to write, and the function objects in
<functional> acquired their <void> forms in C++14, but it's possible to make
this work in C++11 as well.

> If not, what is the reason why this was not added when std::bind was added?
> (I've failed to locate any pre-C++11 WG21 papers about std::bind.)

I didn't propose it. :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk