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

Unified Diff: components/password_manager/core/browser/login_database_unittest.cc

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup 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: components/password_manager/core/browser/login_database_unittest.cc
diff --git a/components/password_manager/core/browser/login_database_unittest.cc b/components/password_manager/core/browser/login_database_unittest.cc
index a0bf235f3cc0aeae9491a9468465757d1f4bcece..a69f58606d77a7538a073046070df046bddd4641 100644
--- a/components/password_manager/core/browser/login_database_unittest.cc
+++ b/components/password_manager/core/browser/login_database_unittest.cc
@@ -74,8 +74,8 @@ template<class T> struct must_be_specialized {
};
template<class T> T GetFirstColumn(const sql::Statement& s) {
- COMPILE_ASSERT(must_be_specialized<T>::is_specialized,
- "Implement a specialization.");
+ static_assert(must_be_specialized<T>::is_specialized,
+ "Implement a specialization.");
}
template<> int64_t GetFirstColumn(const sql::Statement& s) {

Powered by Google App Engine
This is Rietveld 408576698