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

Unified Diff: Source/wtf/StdLibExtras.h

Issue 802203004: replace COMPILE_ASSERT with static assert in wtf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups 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 | « Source/wtf/SizeLimits.cpp ('k') | Source/wtf/StringHasher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/StdLibExtras.h
diff --git a/Source/wtf/StdLibExtras.h b/Source/wtf/StdLibExtras.h
index 55034146ec1bb6533b655407cd461cf0a1cdc57d..863eecbdd6fd64fe381c51addd26ba4e9dd71283 100644
--- a/Source/wtf/StdLibExtras.h
+++ b/Source/wtf/StdLibExtras.h
@@ -112,7 +112,7 @@ namespace WTF {
template<typename TO, typename FROM>
inline TO bitwise_cast(FROM from)
{
- COMPILE_ASSERT(sizeof(TO) == sizeof(FROM), WTF_bitwise_cast_sizeof_casted_types_is_equal);
+ static_assert(sizeof(TO) == sizeof(FROM), "WTF::bitwise_cast sizeof casted types should be equal");
union {
FROM from;
TO to;
« no previous file with comments | « Source/wtf/SizeLimits.cpp ('k') | Source/wtf/StringHasher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698