Index: Source/wtf/HashSet.h |
diff --git a/Source/wtf/HashSet.h b/Source/wtf/HashSet.h |
index 3ecd74c182bf9405840006ac998a26af73baf3c1..7fde52f9627ba55e8ba1220d177a4ee1d12a7917 100644 |
--- a/Source/wtf/HashSet.h |
+++ b/Source/wtf/HashSet.h |
@@ -68,9 +68,15 @@ namespace WTF { |
typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> const_iterator; |
typedef typename HashTableType::AddResult AddResult; |
- void swap(HashSet& other) |
+ void swap(HashSet& ref) |
{ |
- m_impl.swap(other.m_impl); |
+ m_impl.swap(ref.m_impl); |
+ } |
+ |
+ void swap(typename Allocator::template OtherType<HashSet>::Type other) |
+ { |
+ HashSet& ref = Allocator::getOther(other); |
+ m_impl.swap(ref.m_impl); |
} |
unsigned size() const; |