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

Unified Diff: Source/wtf/StringHasher.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/StdLibExtras.h ('k') | Source/wtf/TypeTraits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/StringHasher.h
diff --git a/Source/wtf/StringHasher.h b/Source/wtf/StringHasher.h
index a0ad0d50743b543fb35e7e8d7cf6be4f17e4726f..ecfbfd9431d644cf1814efce12acd4fbc18b1c70 100644
--- a/Source/wtf/StringHasher.h
+++ b/Source/wtf/StringHasher.h
@@ -191,7 +191,7 @@ public:
template<size_t length> static unsigned hashMemory(const void* data)
{
- COMPILE_ASSERT(!(length % 2), length_must_be_a_multiple_of_two);
+ static_assert(!(length % 2), "length must be a multiple of two");
return hashMemory(data, length);
}
« no previous file with comments | « Source/wtf/StdLibExtras.h ('k') | Source/wtf/TypeTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698