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

Unified Diff: Source/wtf/dtoa/utils.h

Issue 802203004: replace COMPILE_ASSERT with static assert in wtf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/wtf/dtoa/utils.h
diff --git a/Source/wtf/dtoa/utils.h b/Source/wtf/dtoa/utils.h
index 54bbfb30fb486e2be9d61f620f67c46a866cd68d..3644ce1670590d899e06cbbe34f207ad3387cc6c 100644
--- a/Source/wtf/dtoa/utils.h
+++ b/Source/wtf/dtoa/utils.h
@@ -288,7 +288,7 @@ namespace double_conversion {
inline Dest BitCast(const Source& source) {
// Compile time assertion: sizeof(Dest) == sizeof(Source)
// A compile error here means your Dest and Source have different sizes.
- COMPILE_ASSERT(sizeof(Dest) == sizeof(Source), VerifySizesAreEqual);
+ static_assert(sizeof(Dest) == sizeof(Source), "VerifySizesAreEqual");
Dest dest;
memcpy(&dest, &source, sizeof(dest));

Powered by Google App Engine
This is Rietveld 408576698