From 1917dc27c2a395148b2ccd1021933a273cc7587b Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 20 Oct 2020 19:48:31 +0000 Subject: [PATCH] IWYU: unique_ptr usage in ChunkedCommandSerializer requires including MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix build breakage in libstdc++: ../../third_party/dawn/src/dawn_wire/ChunkedCommandSerializer.h:84:34: error: ‘unique_ptr’ is not a member of ‘std’ 84 | auto cmdSpace = std::unique_ptr(new (std::nothrow) char[requiredSize]); | ^~~~~~~~~~ ../../third_party/dawn/src/dawn_wire/ChunkedCommandSerializer.h:24:1: note: ‘std::unique_ptr’ is defined in header ‘’; did you forget to ‘#include ’? Bug: chromium:957519 Change-Id: I35b129225882a3f9b758c4f49d1a3cace22aacfe Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30600 Commit-Queue: Kai Ninomiya Reviewed-by: Kai Ninomiya --- src/dawn_wire/ChunkedCommandSerializer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dawn_wire/ChunkedCommandSerializer.h b/src/dawn_wire/ChunkedCommandSerializer.h index cef4ebba4f..db28b87e25 100644 --- a/src/dawn_wire/ChunkedCommandSerializer.h +++ b/src/dawn_wire/ChunkedCommandSerializer.h @@ -21,6 +21,7 @@ #include #include +#include namespace dawn_wire {