From 544eb56c04cbb97f8319557bace77cb46156a9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Jul 2012 23:02:12 +0200 Subject: [PATCH] GCC 4.4 compatibility: std::unordered_map::reserve() doesn't exist yet. --- src/MeshTools/Clean.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MeshTools/Clean.h b/src/MeshTools/Clean.h index 837a47b10..9093995f0 100644 --- a/src/MeshTools/Clean.h +++ b/src/MeshTools/Clean.h @@ -66,8 +66,10 @@ template class Clean { and index of vertex in the face. */ std::unordered_map, HashedVertex, IndexHash> table; + #ifndef MAGNUM_GCC44_COMPATIBILITY /* Reserve space for all vertices */ table.reserve(vertices.size()); + #endif /* Go through all faces' vertices */ for(auto it = indices.begin(); it != indices.end(); ++it) {