This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53339] unordered_map::iterator requires Value to be complete type
- From: "eltoder at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 May 2012 04:41:19 +0000
- Subject: [Bug libstdc++/53339] unordered_map::iterator requires Value to be complete type
- Auto-submitted: auto-generated
- References: <bug-53339-4@http.gcc.gnu.org/bugzilla/>
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.