|
|
|
|
@ -127,7 +127,11 @@ template<class Vertex, std::size_t vertexSize> void RemoveDuplicates<Vertex, ver
|
|
|
|
|
exists, change vertex pointer of the face to already |
|
|
|
|
existing vertex */ |
|
|
|
|
HashedVertex v(*it, table.size()); |
|
|
|
|
#ifndef CORRADE_GCC46_COMPATIBILITY |
|
|
|
|
auto result = table.emplace(Math::Vector<vertexSize, std::size_t>::from(index), v); |
|
|
|
|
#else |
|
|
|
|
auto result = table.insert({Math::Vector<vertexSize, std::size_t>::from(index), v}); |
|
|
|
|
#endif |
|
|
|
|
*it = result.first->second.newIndex; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|