27 Mar
2021
27 Mar
'21
5:58 p.m.
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. :-)