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

Unified Diff: chrome/installer/util/channel_info.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: win Created 5 years, 1 month 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: chrome/installer/util/channel_info.cc
diff --git a/chrome/installer/util/channel_info.cc b/chrome/installer/util/channel_info.cc
index ca181d36bfe1af6e89002ca465030243006043a8..94af334f6371dd24b0f8c5a36449c5b3292770a2 100644
--- a/chrome/installer/util/channel_info.cc
+++ b/chrome/installer/util/channel_info.cc
@@ -53,8 +53,9 @@ enum ModifierIndex {
NUM_MODIFIERS
};
-COMPILE_ASSERT(NUM_MODIFIERS == arraysize(kModifiers),
- kModifiers_disagrees_with_ModifierIndex_comma_they_must_match_bang);
+static_assert(
+ NUM_MODIFIERS == arraysize(kModifiers),
+ "kModifiers_disagrees_with_ModifierIndex_comma_they_must_match_bang");
// Returns true if the modifier is found, in which case |position| holds the
// location at which the modifier was found. The number of characters in the

Powered by Google App Engine
This is Rietveld 408576698