[Bug libstdc++/77451] Cannot convert lambda [](auto&&...){} to std::function<void()>
rs2740 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 13 17:59:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77451
TC <rs2740 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rs2740 at gmail dot com
--- Comment #1 from TC <rs2740 at gmail dot com> ---
This is not a libstdc++ bug. It's caused by GCC misparsing the ... in
[](auto&&...) {} (i.e., a dup of bug 64095).
Under the mistaken parse (which is equivalent to [](auto&&, ...) {}),
std::function<void()>'s constructor correctly refuses to accept the lambda.
More information about the Gcc-bugs
mailing list