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

Unified Diff: base/strings/string16.h

Issue 1467003002: Switch to static_assert in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed one 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: base/strings/string16.h
diff --git a/base/strings/string16.h b/base/strings/string16.h
index 1a01a9613e78dc67685d96a7269cd2569d7e9c2c..2f21d2067dc73fca77c860edbcfb2d7198ca7451 100644
--- a/base/strings/string16.h
+++ b/base/strings/string16.h
@@ -64,7 +64,7 @@ struct string16_char_traits {
// int_type needs to be able to hold each possible value of char_type, and in
// addition, the distinct value of eof().
- COMPILE_ASSERT(sizeof(int_type) > sizeof(char_type), unexpected_type_width);
+ static_assert(sizeof(int_type) > sizeof(char_type), "unexpected_type_width");
typedef std::streamoff off_type;
typedef mbstate_t state_type;

Powered by Google App Engine
This is Rietveld 408576698