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

Unified Diff: public/platform/WebGamepad.h

Issue 802633005: replace COMPILE_ASSERT with static_assert in public/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: improve static_assert msgs Created 6 years 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 | « public/platform/WebDeviceOrientationData.h ('k') | public/platform/WebGamepads.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebGamepad.h
diff --git a/public/platform/WebGamepad.h b/public/platform/WebGamepad.h
index 63d63f10be59ce9187ff6e42914e3e5a33840109..af1c3e7f01e698c3f684401e1577efb48271dfa7 100644
--- a/public/platform/WebGamepad.h
+++ b/public/platform/WebGamepad.h
@@ -97,7 +97,7 @@ public:
};
#if BLINK_IMPLEMENTATION
-COMPILE_ASSERT(sizeof(WebGamepad) == 721, WebGamepad_has_wrong_size);
+static_assert(sizeof(WebGamepad) == 721, "WebGamepad has wrong size");
#endif
#pragma pack(pop)
« no previous file with comments | « public/platform/WebDeviceOrientationData.h ('k') | public/platform/WebGamepads.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698