From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28937 invoked by alias); 18 Nov 2013 08:26:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28509 invoked by uid 48); 18 Nov 2013 08:25:39 -0000 From: "bmerry at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/59167] New: Add a specialization for std::hash<__gnu_debug::string> Date: Mon, 18 Nov 2013 08:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bmerry at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg01612.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59167 Bug ID: 59167 Summary: Add a specialization for std::hash<__gnu_debug::string> Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: bmerry at gmail dot com I have code for which I am explicitly selecting debug containers from the __gnu_debug namespace (I'm not using -D_GLIBCXX_DEBUG since it breaks the ABI with Boost and I don't want to require people to rebuild Boost to use a debug build of my code). This mostly works, but when I try to use an unordered_map with __gnu_debug::string as the key type I get errors because std::hash hasn't been specialized for it. I can write my own specialization, but it would be nice if the library just provided it. Obviously the other variants (wstring, u16string, u32string should be handled too).