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) |