Browse Source

GCC 4.4 compatibility: std::unordered_map::reserve() doesn't exist yet.

Vladimír Vondruš 14 years ago
parent
commit
544eb56c04
  1. 2
      src/MeshTools/Clean.h

2
src/MeshTools/Clean.h

@ -66,8 +66,10 @@ template<class Vertex, size_t vertexSize = Vertex::Size> class Clean {
and index of vertex in the face. */
std::unordered_map<Math::Vector<vertexSize, size_t>, 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) {

Loading…
Cancel
Save