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

Unified Diff: Source/platform/CrossThreadCopier.h

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (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 | « no previous file | Source/platform/CrossThreadCopier.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/CrossThreadCopier.h
diff --git a/Source/platform/CrossThreadCopier.h b/Source/platform/CrossThreadCopier.h
index a1f593e34c48edfa5132b28b7c595b0961e68641..1e89fe34cff03d290591e52aaf6f4b72eda02cb8 100644
--- a/Source/platform/CrossThreadCopier.h
+++ b/Source/platform/CrossThreadCopier.h
@@ -82,10 +82,10 @@ namespace blink {
typedef typename WTF::RemovePointer<TypeWithoutPassRefPtr>::Type RefCountedType;
// Verify that only one of the above did a change.
- COMPILE_ASSERT((WTF::IsSameType<RefPtr<RefCountedType>, T>::value
+ static_assert((WTF::IsSameType<RefPtr<RefCountedType>, T>::value
|| WTF::IsSameType<PassRefPtr<RefCountedType>, T>::value
|| WTF::IsSameType<RefCountedType*, T>::value),
- OnlyAllowOneTypeModification);
+ "only one type modification should be allowed");
typedef PassRefPtr<RefCountedType> Type;
static Type copy(const T& refPtr)
« no previous file with comments | « no previous file | Source/platform/CrossThreadCopier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698