From 6aec1aa55e73b5dcdcf99dcad6b854cd000f9c69 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Wed, 6 Sep 2023 08:12:39 +0800 Subject: [PATCH] Add import for `` to fix the g3 build (flutter/engine#45471) Fixes the following in G3 (b/299185514): ``` impeller/typographer/font_glyph_pair.h:27:27: error: no template named 'unordered_map' in namespace 'std'; did you mean 'unordered_set'? using FontGlyphMap = std::unordered_map>; ~~~~~^ ``` I don't really know why the lack of this import only breaks the g3 build, but not here. My guess is that it's being imported transitively in some other import that's being ifdef-ed out in g3. But since we're already using it in https://github.com/flutter/engine/blob/ee1845066437a21888a661604bdff6923dcabeed/impeller/typographer/font_glyph_pair.h#L27, we probably want to use the import in this file anyway. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/impeller/typographer/font_glyph_pair.h | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/impeller/typographer/font_glyph_pair.h b/engine/src/flutter/impeller/typographer/font_glyph_pair.h index 60be5b8f88..00b59411d3 100644 --- a/engine/src/flutter/impeller/typographer/font_glyph_pair.h +++ b/engine/src/flutter/impeller/typographer/font_glyph_pair.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include