From: Jonathan Wakely Date: Wed, 9 Nov 2011 08:23:30 +0000 (+0000) Subject: unordered_map: Add missing copy constructors. X-Git-Tag: releases/gcc-4.7.0~2325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c235090477f18ee7167a046bdf8102447217249;p=thirdparty%2Fgcc.git unordered_map: Add missing copy constructors. * include/profile/unordered_map: Add missing copy constructors. * include/profile/unordered_set: Likewise. From-SVN: r181196 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4d4608e36251..f18d7ee511be 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-11-09 Jonathan Wakely + + * include/profile/unordered_map: Add missing copy constructors. + * include/profile/unordered_set: Likewise. + 2011-11-09 Dodji Seketeli PR c++/51027 diff --git a/libstdc++-v3/include/profile/unordered_map b/libstdc++-v3/include/profile/unordered_map index 5722771f425f..5d57df53769d 100644 --- a/libstdc++-v3/include/profile/unordered_map +++ b/libstdc++-v3/include/profile/unordered_map @@ -96,6 +96,13 @@ namespace __profile __profcxx_hashtable_construct2(this); } + unordered_map(const unordered_map& __x) + : _Base(__x) + { + __profcxx_hashtable_construct(this, _Base::bucket_count()); + __profcxx_hashtable_construct2(this); + } + unordered_map(const _Base& __x) : _Base(__x) { @@ -365,6 +372,12 @@ namespace __profile __profcxx_hashtable_construct(this, _Base::bucket_count()); } + unordered_multimap(const unordered_multimap& __x) + : _Base(__x) + { + __profcxx_hashtable_construct(this, _Base::bucket_count()); + } + unordered_multimap(const _Base& __x) : _Base(__x) { diff --git a/libstdc++-v3/include/profile/unordered_set b/libstdc++-v3/include/profile/unordered_set index cb3a0e17451d..4af778bbf7c3 100644 --- a/libstdc++-v3/include/profile/unordered_set +++ b/libstdc++-v3/include/profile/unordered_set @@ -95,6 +95,13 @@ namespace __profile __profcxx_hashtable_construct2(this); } + unordered_set(const unordered_set& __x) + : _Base(__x) + { + __profcxx_hashtable_construct(this, _Base::bucket_count()); + __profcxx_hashtable_construct2(this); + } + unordered_set(const _Base& __x) : _Base(__x) { @@ -339,6 +346,12 @@ namespace __profile __profcxx_hashtable_construct(this, _Base::bucket_count()); } + unordered_multiset(const unordered_multiset& __x) + : _Base(__x) + { + __profcxx_hashtable_construct(this, _Base::bucket_count()); + } + unordered_multiset(const _Base& __x) : _Base(__x) {