diff options
author | mostynb <mostynb@opera.com> | 2015-01-05 16:20:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-06 00:21:48 +0000 |
commit | ddbabe7c05cb094a321d18e429bcd92491f20c5f (patch) | |
tree | 65c9d2f18a13a3bb60eed31180333ab3b3b25f97 | |
parent | 338cd36a1deb48bbd66d8f920b5aa9da1a6132d2 (diff) | |
download | chromium_src-ddbabe7c05cb094a321d18e429bcd92491f20c5f.zip chromium_src-ddbabe7c05cb094a321d18e429bcd92491f20c5f.tar.gz chromium_src-ddbabe7c05cb094a321d18e429bcd92491f20c5f.tar.bz2 |
replace COMPILE_ASSERT with static_assert in sql/
BUG=442514
Review URL: https://codereview.chromium.org/825313002
Cr-Commit-Position: refs/heads/master@{#310006}
-rw-r--r-- | sql/statement.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/statement.cc b/sql/statement.cc index b3707c5..6dbd8d9 100644 --- a/sql/statement.cc +++ b/sql/statement.cc @@ -171,11 +171,11 @@ int Statement::ColumnCount() const { ColType Statement::ColumnType(int col) const { // Verify that our enum matches sqlite's values. - COMPILE_ASSERT(COLUMN_TYPE_INTEGER == SQLITE_INTEGER, integer_no_match); - COMPILE_ASSERT(COLUMN_TYPE_FLOAT == SQLITE_FLOAT, float_no_match); - COMPILE_ASSERT(COLUMN_TYPE_TEXT == SQLITE_TEXT, integer_no_match); - COMPILE_ASSERT(COLUMN_TYPE_BLOB == SQLITE_BLOB, blob_no_match); - COMPILE_ASSERT(COLUMN_TYPE_NULL == SQLITE_NULL, null_no_match); + static_assert(COLUMN_TYPE_INTEGER == SQLITE_INTEGER, "integer no match"); + static_assert(COLUMN_TYPE_FLOAT == SQLITE_FLOAT, "float no match"); + static_assert(COLUMN_TYPE_TEXT == SQLITE_TEXT, "integer no match"); + static_assert(COLUMN_TYPE_BLOB == SQLITE_BLOB, "blob no match"); + static_assert(COLUMN_TYPE_NULL == SQLITE_NULL, "null no match"); return static_cast<ColType>(sqlite3_column_type(ref_->stmt(), col)); } |