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

Unified Diff: Source/wtf/text/TextCodec.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/text/TextCodec.h
diff --git a/Source/wtf/text/TextCodec.h b/Source/wtf/text/TextCodec.h
index e85413e0a17c71a55ed315d9a1ca5c4548d05715..eaa4d495fb3f2c865d77a4c29518ea1dcec6b096 100644
--- a/Source/wtf/text/TextCodec.h
+++ b/Source/wtf/text/TextCodec.h
@@ -66,9 +66,9 @@ enum FlushBehavior {
DataEOF
};
-COMPILE_ASSERT(!DoNotFlush, DoNotFlush_is_falsy);
-COMPILE_ASSERT(FetchEOF, FetchEOF_is_truthy);
-COMPILE_ASSERT(DataEOF, DataEOF_is_truthy);
+static_assert(!DoNotFlush, "DoNotFlush_is_falsy");
+static_assert(FetchEOF, "FetchEOF_is_truthy");
+static_assert(DataEOF, "DataEOF_is_truthy");
class TextCodec {

Powered by Google App Engine
This is Rietveld 408576698