Chromium Code Reviews

Unified Diff: Source/platform/PODFreeListArena.h

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: another fixup Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/platform/PODFreeListArena.h
diff --git a/Source/platform/PODFreeListArena.h b/Source/platform/PODFreeListArena.h
index 9e965c152e52128976e92472f0b29bb4e9152d59..7e96a29b8a8a18f5e370038880cbe7bb73903fb6 100644
--- a/Source/platform/PODFreeListArena.h
+++ b/Source/platform/PODFreeListArena.h
@@ -119,7 +119,7 @@ private:
};
FixedSizeMemoryChunk* m_freeList;
- COMPILE_ASSERT(sizeof(T) >= sizeof(FixedSizeMemoryChunk), PODFreeListArena_type_should_be_larger);
+ static_assert(sizeof(T) >= sizeof(FixedSizeMemoryChunk), "PODFreeListArena type should be larger");
friend class WTF::RefCounted<PODFreeListArena>;
friend class PODFreeListArenaTest;

Powered by Google App Engine