Fix build regression on alpine linux

Closes https://github.com/dart-lang/sdk/pull/55993

GitOrigin-RevId: 0a4d00914442f6be1bce949ca7a234fbd04952cd
Change-Id: I1cb1ad381111853c03ac3a39854a0c0a75a3d31a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371262
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
なつき 2024-06-14 07:39:30 +00:00 committed by Commit Queue
parent 47cb48e415
commit bde8d28217

View file

@ -22,7 +22,7 @@ class CAllocUniquePtr : public std::unique_ptr<T, decltype(std::free)*> {
: std::unique_ptr<T, decltype(std::free)*>(nullptr, std::free) {}
explicit CAllocUniquePtr(T* value)
: std::unique_ptr<T, decltype(std::free)*>(value, std::free) {}
CAllocUniquePtr& operator=(nullptr_t value) {
CAllocUniquePtr& operator=(std::nullptr_t value) {
std::unique_ptr<T, decltype(std::free)*>::operator=(value);
return *this;
}