From 337e9dce66b973617dd5397bc529e9f5363410a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 5 Jul 2013 18:30:14 +0200 Subject: [PATCH] GCC 4.5 compatibility: no std::unordered_map::emplace(). --- src/Plugins/MagnumFont/MagnumFont.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Plugins/MagnumFont/MagnumFont.cpp b/src/Plugins/MagnumFont/MagnumFont.cpp index 422f485b2..a42239c34 100644 --- a/src/Plugins/MagnumFont/MagnumFont.cpp +++ b/src/Plugins/MagnumFont/MagnumFont.cpp @@ -142,7 +142,11 @@ void MagnumFont::openInternal(Utility::Configuration&& conf, Trade::ImageData2D& const Utility::ConfigurationGroup* const c = *it; const UnsignedInt glyphId = c->value("glyph"); CORRADE_INTERNAL_ASSERT(glyphId < _opened->glyphAdvance.size()); + #ifndef CORRADE_GCC46_COMPATIBILITY _opened->glyphId.emplace(c->value("unicode"), glyphId); + #else + _opened->glyphId.insert({c->value("unicode"), glyphId}); + #endif _opened->glyphAdvance[glyphId] = c->value("advance"); } }