diff --git a/runtime/platform/utils.h b/runtime/platform/utils.h index 0ffe930433f..9c52ba506d1 100644 --- a/runtime/platform/utils.h +++ b/runtime/platform/utils.h @@ -22,7 +22,7 @@ class CAllocUniquePtr : public std::unique_ptr { : std::unique_ptr(nullptr, std::free) {} explicit CAllocUniquePtr(T* value) : std::unique_ptr(value, std::free) {} - CAllocUniquePtr& operator=(nullptr_t value) { + CAllocUniquePtr& operator=(std::nullptr_t value) { std::unique_ptr::operator=(value); return *this; }