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 libstdc++/53339] unordered_map::iterator requires Value to be complete type


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53339

--- Comment #4 from Eugene Toder <eltoder at gmail dot com> 2012-05-14 04:41:19 UTC ---
Created attachment 27395
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27395
POC for mainline

Never mind, I was looking in tr1 instead of bits.

Yes, it's a bit more tricky in mainline, because hashtable_policy.h now makes
assumptions that _ExtractKey is always _Select1st. Is there a good reason for
that? At least it feels strange to allow specifying arbitrary _ExtractKey if
only _Select1st will actually compile.

Anyway, a very minimal quick and dirty patch attached.


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