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

Unified Diff: util/misc/uuid.cc

Issue 615923004: Convert COMPILE_ASSERT to static_assert (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes 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 | « util/mach/symbolic_constants_mach.cc ('k') | util/numeric/checked_range.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/misc/uuid.cc
diff --git a/util/misc/uuid.cc b/util/misc/uuid.cc
index a7ba4a8f48eaa4c59e5e6cc032b380f77b4182ef..939c0b8e985daa24e0fab5c4f1c1d1100e218bd2 100644
--- a/util/misc/uuid.cc
+++ b/util/misc/uuid.cc
@@ -27,11 +27,11 @@
namespace crashpad {
-COMPILE_ASSERT(sizeof(UUID) == 16, UUID_must_be_16_bytes);
+static_assert(sizeof(UUID) == 16, "UUID must be 16 bytes");
#if CXX_LIBRARY_VERSION >= 2011
-COMPILE_ASSERT(std::is_standard_layout<UUID>::value,
- UUID_must_be_standard_layout);
+static_assert(std::is_standard_layout<UUID>::value,
+ "UUID must be standard layout");
#endif
UUID::UUID() : data_1(0), data_2(0), data_3(0), data_4(), data_5() {
« no previous file with comments | « util/mach/symbolic_constants_mach.cc ('k') | util/numeric/checked_range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698