From 8e57c9fa2b293a637dd55469be84b98439cffaf1 Mon Sep 17 00:00:00 2001 From: "m.milanovic@levi9.com" Date: Fri, 22 Aug 2014 16:51:25 +0200 Subject: [PATCH] Use tinystl/unordered_map in geometry --- tools/geometryc/geometryc.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/geometryc/geometryc.cpp b/tools/geometryc/geometryc.cpp index 6e85f979..2157e050 100644 --- a/tools/geometryc/geometryc.cpp +++ b/tools/geometryc/geometryc.cpp @@ -13,7 +13,9 @@ #include #include #include -#include +#include +#include +namespace stl = tinystl; #include @@ -79,7 +81,7 @@ struct Index3 int32_t m_vertexIndex; }; -typedef std::unordered_map Index3Map; +typedef stl::unordered_map Index3Map; struct Triangle { @@ -478,7 +480,7 @@ int main(int _argc, const char* _argv[]) uint64_t hash2 = uint64_t(index.m_normal)<<40; uint64_t hash = hash0^hash1^hash2; - std::pair result = indexMap.insert(std::make_pair(hash, index) ); + stl::pair result = indexMap.insert(stl::make_pair(hash, index) ); if (!result.second) { Index3& oldIndex = result.first->second;