| Index: third_party/WebKit/Source/wtf/HashCountedSet.h
|
| diff --git a/third_party/WebKit/Source/wtf/HashCountedSet.h b/third_party/WebKit/Source/wtf/HashCountedSet.h
|
| index fc60257d7e8ec265aed82e8e203bc9a9cff0ec14..6e0db4ed11ccb3b1d315935da70aaa882dd81941 100644
|
| --- a/third_party/WebKit/Source/wtf/HashCountedSet.h
|
| +++ b/third_party/WebKit/Source/wtf/HashCountedSet.h
|
| @@ -53,7 +53,13 @@ class HashCountedSet {
|
| typedef typename ImplType::const_iterator const_iterator;
|
| typedef typename ImplType::AddResult AddResult;
|
|
|
| - HashCountedSet() {}
|
| + HashCountedSet() {
|
| + static_assert(Allocator::isGarbageCollected ||
|
| + !IsPointerToGarbageCollectedType<Value>::value,
|
| + "Cannot put raw pointers to garbage-collected classes into "
|
| + "an off-heap HashCountedSet. Use "
|
| + "HeapHashCountedSet<Member<T>> instead.");
|
| + }
|
|
|
| void swap(HashCountedSet& other) { m_impl.swap(other.m_impl); }
|
|
|
|
|