From 17ae7f11546e1ce8bec4e4ec71ccb59891ad19cc Mon Sep 17 00:00:00 2001 From: redi Date: Wed, 16 Jan 2013 09:20:34 +0000 Subject: PR libstdc++/55043 * include/std/unordered_map: Include alloc_traits.h * include/std/unordered_set: Likewise. * include/bits/alloc_traits.h: Define __is_copy_insertable. * include/bits/unordered_map.h: Use it. * include/bits/unordered_set.h: Likewise. * include/debug/unordered_map.h: Likewise. * include/debug/unordered_set.h: Likewise. * include/profile/unordered_map.h: Likewise. * include/profile/unordered_set.h: Likewise. * include/bits/hashtable.h: Fix comment typos. * testsuite/23_containers/unordered_map/55043.cc: New. * testsuite/23_containers/unordered_multimap/55043.cc: New. * testsuite/23_containers/unordered_multiset/55043.cc: New. * testsuite/23_containers/unordered_set/55043.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195231 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/include/debug/unordered_set | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'libstdc++-v3/include/debug/unordered_set') diff --git a/libstdc++-v3/include/debug/unordered_set b/libstdc++-v3/include/debug/unordered_set index d270ecc96d3..895c9439f6e 100644 --- a/libstdc++-v3/include/debug/unordered_set +++ b/libstdc++-v3/include/debug/unordered_set @@ -1,7 +1,6 @@ // Debugging unordered_set/unordered_multiset implementation -*- C++ -*- -// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -// Free Software Foundation, Inc. +// Copyright (C) 2003-2013 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -921,6 +920,27 @@ namespace __debug { return !(__x == __y); } } // namespace __debug + +_GLIBCXX_BEGIN_NAMESPACE_VERSION + + template + struct + is_copy_constructible<__debug::unordered_set<_Key, _Hash, _Pred, _Alloc>> + : is_copy_constructible< _GLIBCXX_STD_C::unordered_set<_Key, + _Hash, _Pred, + _Alloc> > + { }; + + template + struct + is_copy_constructible<__debug::unordered_multiset<_Key, _Hash, _Pred, + _Alloc>> + : is_copy_constructible< _GLIBCXX_STD_C::unordered_multiset<_Key, + _Hash, _Pred, + _Alloc> > + { }; + +_GLIBCXX_END_NAMESPACE_VERSION } // namespace std #endif // C++11 -- cgit v1.2.3