This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57684] [c++11] Lambda is not convertible to std::function
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 23 Jun 2013 13:01:19 +0000
- Subject: [Bug c++/57684] [c++11] Lambda is not convertible to std::function
- Auto-submitted: auto-generated
- References: <bug-57684-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57684
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard says it is undefined to instantiate any std template with
incomplete types (with exceptions for shared_ptr and unique_ptr and maybe a few
others). As an extension libstdc++ allows all containers to be instantiated
with incomplete types, except the unordered_xxx ones.