| Index: Source/wtf/OwnPtrCommon.h
|
| diff --git a/Source/wtf/OwnPtrCommon.h b/Source/wtf/OwnPtrCommon.h
|
| index 5b3414b7975b48c7dbb6f9e2c9e5b513f00efe37..ff913f2195c0db6c31e0a450737dd17d5d1f022e 100644
|
| --- a/Source/wtf/OwnPtrCommon.h
|
| +++ b/Source/wtf/OwnPtrCommon.h
|
| @@ -47,8 +47,8 @@ template <typename T>
|
| struct OwnedPtrDeleter {
|
| static void deletePtr(T* ptr)
|
| {
|
| - COMPILE_ASSERT(!IsRefCounted<T>::value, UseRefPtrForRefCountedObjects);
|
| - COMPILE_ASSERT(sizeof(T) > 0, TypeMustBeComplete);
|
| + static_assert(!IsRefCounted<T>::value, "UseRefPtrForRefCountedObjects");
|
| + static_assert(sizeof(T) > 0, "TypeMustBeComplete");
|
| delete ptr;
|
| }
|
| };
|
| @@ -57,15 +57,15 @@ template <typename T>
|
| struct OwnedPtrDeleter<T[]> {
|
| static void deletePtr(T* ptr)
|
| {
|
| - COMPILE_ASSERT(!IsRefCounted<T>::value, UseRefPtrForRefCountedObjects);
|
| - COMPILE_ASSERT(sizeof(T) > 0, TypeMustBeComplete);
|
| + static_assert(!IsRefCounted<T>::value, "UseRefPtrForRefCountedObjects");
|
| + static_assert(sizeof(T) > 0, "TypeMustBeComplete");
|
| delete[] ptr;
|
| }
|
| };
|
|
|
| template <class T, int n>
|
| struct OwnedPtrDeleter<T[n]> {
|
| - COMPILE_ASSERT(sizeof(T) < 0, DoNotUseArrayWithSizeAsType);
|
| + static_assert(sizeof(T) < 0, "DoNotUseArrayWithSizeAsType");
|
| };
|
|
|
| } // namespace WTF
|
|
|