From 95d689b071b4b72c1e67271c40a96edbd25e2e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 31 Mar 2013 20:29:44 +0200 Subject: [PATCH] GCC 4.4 compatibility: no std::unordered_map::reserve(). --- src/Text/GlyphCache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text/GlyphCache.cpp b/src/Text/GlyphCache.cpp index ad6c81aee..c46af37e0 100644 --- a/src/Text/GlyphCache.cpp +++ b/src/Text/GlyphCache.cpp @@ -72,7 +72,9 @@ void GlyphCache::initialize(const AbstractTexture::InternalFormat internalFormat std::vector GlyphCache::reserve(const std::vector& sizes) { CORRADE_ASSERT(glyphs.empty(), "Text::GlyphCache::reserve(): reserving space in non-empty cache is not yet implemented", {}); + #ifndef CORRADE_GCC44_COMPATIBILITY glyphs.reserve(glyphs.size() + sizes.size()); + #endif return TextureTools::atlas(_size, sizes, _padding); }