unordered_map: Add missing copy constructors.

* include/profile/unordered_map: Add missing copy constructors.
	* include/profile/unordered_set: Likewise.

From-SVN: r181196
This commit is contained in:
Jonathan Wakely 2011-11-09 08:23:30 +00:00 committed by Jonathan Wakely
parent bd0424fa93
commit 6c23509047
3 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-11-09 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/profile/unordered_map: Add missing copy constructors.
* include/profile/unordered_set: Likewise.
2011-11-09 Dodji Seketeli <dodji@redhat.com>
PR c++/51027

View File

@ -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)
{

View File

@ -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)
{