From patchwork Sun Sep 23 10:08:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Fix code regression From: =?utf-8?q?Fran=C3=A7ois_Dumont?= X-Patchwork-Id: 186193 Message-Id: <505EDF90.8080405@gmail.com> To: "libstdc++@gcc.gnu.org" , gcc-patches Date: Sun, 23 Sep 2012 12:08:16 +0200 Hi I detect this regression while running performance tests. I think it comes from: 2012-04-12 Benjamin Kosnik * include/bits/unordered_map.h (__unordered_map): Remove. (__unordered_multimap): Remove. Add aliases for __umap_traits, __umap_hashtable, __ummap_traits, __ummap_hashtable. (unordered_map): Derive from __umap_hashtable. (unordered_multimap): Derive from __ummap_hashtable. * include/bits/unordered_set.h (__unordered_set): Remove. (__unordered_multiset): Remove. ... 2012-09-19 François Dumont * testsuite/performance/23_containers/insert_erase/41975.cc: Use __uset_hashtable rather than now missing __unordered_set. Ok to commit ? François Index: testsuite/performance/23_containers/insert_erase/41975.cc =================================================================== --- testsuite/performance/23_containers/insert_erase/41975.cc (revision 191279) +++ testsuite/performance/23_containers/insert_erase/41975.cc (working copy) @@ -40,8 +40,9 @@ const int nb = 200000; start_counters(time, resource); - std::__unordered_set, std::equal_to, - std::allocator, use_cache> us; + std::__uset_hashtable, std::equal_to, + std::allocator, + std::__uset_traits> us; for (int i = 0; i != nb; ++i) us.insert(i); @@ -125,9 +126,10 @@ start_counters(time, resource); - std::__unordered_set, - std::equal_to, - std::allocator, use_cache> us; + std::__uset_hashtable, + std::equal_to, + std::allocator, + std::__uset_traits> us; for (int i = 0; i != nb; ++i) us.insert(strs[i]);