This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/57684] [c++11] Lambda is not convertible to std::function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]