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

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: 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/wtf/text/StringImpl.cpp ('k') | Source/wtf/unicode/Unicode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextCodec.h
diff --git a/Source/wtf/text/TextCodec.h b/Source/wtf/text/TextCodec.h
index e85413e0a17c71a55ed315d9a1ca5c4548d05715..23a5489940c77d5da1a99510567231a3bf61220b 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 should be falsy");
+static_assert(FetchEOF, "FetchEOF should be truthy");
+static_assert(DataEOF, "DataEOF should be truthy");
class TextCodec {
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | Source/wtf/unicode/Unicode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698