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

Unified Diff: sync/syncable/syncable_columns.h

Issue 809073005: replace COMPILE_ASSERT with static_assert in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 years, 11 months 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 | « sync/syncable/nigori_util.cc ('k') | sync/syncable/syncable_enum_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_columns.h
diff --git a/sync/syncable/syncable_columns.h b/sync/syncable/syncable_columns.h
index 7d3a967977f2392fb198c1195b9a0b20267a522f..8b3bd9ee10a00e18cd1c077816338db6bd6b8294 100644
--- a/sync/syncable/syncable_columns.h
+++ b/sync/syncable/syncable_columns.h
@@ -72,8 +72,8 @@ static const ColumnSpec g_metas_columns[] = {
};
// At least enforce that there are equal number of column names and fields.
-COMPILE_ASSERT(arraysize(g_metas_columns) >= FIELD_COUNT, missing_column_name);
-COMPILE_ASSERT(arraysize(g_metas_columns) <= FIELD_COUNT, extra_column_names);
+static_assert(arraysize(g_metas_columns) >= FIELD_COUNT, "missing column name");
+static_assert(arraysize(g_metas_columns) <= FIELD_COUNT, "extra column names");
static inline const char* ColumnName(int field) {
DCHECK(field < BEGIN_TEMPS);
« no previous file with comments | « sync/syncable/nigori_util.cc ('k') | sync/syncable/syncable_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698