From e17b9702088dab39f93a0567eaae2ee1e5280575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 15 Nov 2013 19:25:45 +0100 Subject: [PATCH] GCC 4.4 compatibility: no std::unordered_map::reserve(). --- src/Plugins/MagnumFontConverter/MagnumFontConverter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Plugins/MagnumFontConverter/MagnumFontConverter.cpp b/src/Plugins/MagnumFontConverter/MagnumFontConverter.cpp index c411785e3..aea751d96 100644 --- a/src/Plugins/MagnumFontConverter/MagnumFontConverter.cpp +++ b/src/Plugins/MagnumFontConverter/MagnumFontConverter.cpp @@ -62,7 +62,9 @@ std::vector>> MagnumFont /* Compress glyph IDs so the glyphs are in consecutive array, glyph 0 should stay at position 0 */ std::unordered_map glyphIdMap; + #ifndef CORRADE_GCC44_COMPATIBILITY glyphIdMap.reserve(cache.glyphCount()); + #endif #ifndef CORRADE_GCC46_COMPATIBILITY glyphIdMap.emplace(0, 0); #else