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

Unified Diff: Source/wtf/BloomFilter.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 | « no previous file | Source/wtf/HashTable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/BloomFilter.h
diff --git a/Source/wtf/BloomFilter.h b/Source/wtf/BloomFilter.h
index bc16fb15abaa8a0b09db589e617283347ad3666d..a3a3652153d1cade89176144c3f449d57218f877 100644
--- a/Source/wtf/BloomFilter.h
+++ b/Source/wtf/BloomFilter.h
@@ -37,7 +37,7 @@ namespace WTF {
template <unsigned keyBits>
class BloomFilter {
public:
- COMPILE_ASSERT(keyBits <= 16, bloom_filter_key_size);
+ static_assert(keyBits <= 16, "bloom filter key size check");
static const size_t tableSize = 1 << keyBits;
static const unsigned keyMask = (1 << keyBits) - 1;
« no previous file with comments | « no previous file | Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698