| Index: Source/wtf/ListHashSet.h
|
| diff --git a/Source/wtf/ListHashSet.h b/Source/wtf/ListHashSet.h
|
| index 52b2906becfdcfe3026b9ffbaab3ba5ee5f68678..ac3f7c06d522f850a9b975c03d137d179bfa4863 100644
|
| --- a/Source/wtf/ListHashSet.h
|
| +++ b/Source/wtf/ListHashSet.h
|
| @@ -360,7 +360,7 @@ namespace WTF {
|
|
|
| void* operator new(size_t, NodeAllocator* allocator)
|
| {
|
| - COMPILE_ASSERT(sizeof(ListHashSetNode) == sizeof(ListHashSetNodeBase<ValueArg>), PleaseAddAnyFieldsToTheBase);
|
| + static_assert(sizeof(ListHashSetNode) == sizeof(ListHashSetNodeBase<ValueArg>), "PleaseAddAnyFieldsToTheBase");
|
| return allocator->allocateNode();
|
| }
|
|
|
| @@ -695,7 +695,7 @@ namespace WTF {
|
| template<typename T, size_t inlineCapacity, typename U, typename V>
|
| inline void ListHashSet<T, inlineCapacity, U, V>::finalize()
|
| {
|
| - COMPILE_ASSERT(!Allocator::isGarbageCollected, FinalizeOnHeapAllocatedListHashSetShouldNeverBeCalled);
|
| + static_assert(!Allocator::isGarbageCollected, "FinalizeOnHeapAllocatedListHashSetShouldNeverBeCalled");
|
| deleteAllNodes();
|
| }
|
|
|
| @@ -996,7 +996,7 @@ namespace WTF {
|
| template<typename T, size_t inlineCapacity, typename U, typename V>
|
| void ListHashSet<T, inlineCapacity, U, V>::trace(typename Allocator::Visitor* visitor)
|
| {
|
| - COMPILE_ASSERT(HashTraits<T>::weakHandlingFlag == NoWeakHandlingInCollections, ListHashSetDoesNotSupportWeakness);
|
| + static_assert(HashTraits<T>::weakHandlingFlag == NoWeakHandlingInCollections, "ListHashSetDoesNotSupportWeakness");
|
| // This marks all the nodes and their contents live that can be
|
| // accessed through the HashTable. That includes m_head and m_tail
|
| // so we do not have to explicitly trace them here.
|
|
|