commit | ae3ebcecab27a65130cd1e33f8248b08e23f678c | [log] [tgz] |
---|---|---|
author | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | Mon Jan 11 16:29:17 2021 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jan 28 12:34:09 2021 -0800 |
tree | 5ec1938645eeceac089b21dc54b075271f3763ad | |
parent | b7ff8932340eb6b1caf37b79e95f7365019cf2fd [diff] |
[libc++] Support immovable return types in std::function. LWG reflector consensus is that this was a bug in libc++. (In particular, MSVC also will fix it in their STL, soon.) Bug originally discovered by Logan Smith. Also fix `std::function<const void()>`, which should work the same way as `std::function<void()>` in terms of allowing "conversions" from non-void types. Differential Revision: https://reviews.llvm.org/D94452 GitOrigin-RevId: f9b6fd269b6fd2b085c3537b6730a02503430ef0