Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1748)

Unified Diff: Source/platform/Length.cpp

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/JSONValues.cpp ('k') | Source/platform/PODFreeListArena.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Length.cpp
diff --git a/Source/platform/Length.cpp b/Source/platform/Length.cpp
index 5da3aba51ceb027299ab02305657eae3de17fdec..1107e0411b1eb15e8bde49ac84405efbb2771a3a 100644
--- a/Source/platform/Length.cpp
+++ b/Source/platform/Length.cpp
@@ -250,6 +250,6 @@ struct SameSizeAsLength {
int32_t value;
int32_t metaData;
};
-COMPILE_ASSERT(sizeof(Length) == sizeof(SameSizeAsLength), length_should_stay_small);
+static_assert(sizeof(Length) == sizeof(SameSizeAsLength), "length should stay small");
} // namespace blink
« no previous file with comments | « Source/platform/JSONValues.cpp ('k') | Source/platform/PODFreeListArena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698