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

Unified Diff: client/simple_string_dictionary.cc

Issue 615923004: Convert COMPILE_ASSERT to static_assert (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 months 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 | crashpad.doxy » ('j') | util/file/file_writer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/simple_string_dictionary.cc
diff --git a/client/simple_string_dictionary.cc b/client/simple_string_dictionary.cc
index c8e9c98d64d7a7352a6540aa97b4f1f6749b43a5..a1a24a10cc71d3ac2964b386674c5b98e9b93090 100644
--- a/client/simple_string_dictionary.cc
+++ b/client/simple_string_dictionary.cc
@@ -29,9 +29,9 @@ typedef TSimpleStringDictionary<1, 1, 1> SimpleStringDictionaryForAssertion;
#if CXX_LIBRARY_VERSION >= 2011
// In C++11, check that TSimpleStringDictionary has standard layout, which is
// what is actually important.
-COMPILE_ASSERT(
+static_assert(
std::is_standard_layout<SimpleStringDictionaryForAssertion>::value,
- SimpleStringDictionary_must_be_standard_layout);
+ "SimpleStringDictionary must be standard layout");
#else
// In C++98 (ISO 14882), section 9.5.1 says that a union cannot have a member
// with a non-trivial ctor, copy ctor, dtor, or assignment operator. Use this
« no previous file with comments | « no previous file | crashpad.doxy » ('j') | util/file/file_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698