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

Unified Diff: net/disk_cache/blockfile/disk_format.h

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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
Index: net/disk_cache/blockfile/disk_format.h
diff --git a/net/disk_cache/blockfile/disk_format.h b/net/disk_cache/blockfile/disk_format.h
index 95ac58b6274caf2c969266f77b2ce5b5813db346..78836c3c81ddfaacb0b31603df0817c1988f2589 100644
--- a/net/disk_cache/blockfile/disk_format.h
+++ b/net/disk_cache/blockfile/disk_format.h
@@ -116,7 +116,7 @@ struct EntryStore {
char key[256 - 24 * 4]; // null terminated
};
-COMPILE_ASSERT(sizeof(EntryStore) == 256, bad_EntyStore);
+static_assert(sizeof(EntryStore) == 256, "bad EntyStore");
Deprecated (see juliatuttle) 2015/01/05 22:22:38 Fix typo ("EntyStore" -> "EntryStore") while you'r
Mostyn Bramley-Moore 2015/01/06 00:07:07 Done.
const int kMaxInternalKeyLength = 4 * sizeof(EntryStore) -
offsetof(EntryStore, key) - 1;
@@ -146,7 +146,7 @@ struct RankingsNode {
};
#pragma pack(pop)
-COMPILE_ASSERT(sizeof(RankingsNode) == 36, bad_RankingsNode);
+static_assert(sizeof(RankingsNode) == 36, "bad RankingsNode");
} // namespace disk_cache

Powered by Google App Engine
This is Rietveld 408576698