From a98baef5e4fedca36c8c8755ad7c8233469f6a3f Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 4 Jun 2017 21:00:04 +0200 Subject: C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821) --- src/face_position_cache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/face_position_cache.cpp') diff --git a/src/face_position_cache.cpp b/src/face_position_cache.cpp index f57e75da9..d2883a1b3 100644 --- a/src/face_position_cache.cpp +++ b/src/face_position_cache.cpp @@ -21,14 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "threading/mutex_auto_lock.h" -UNORDERED_MAP > FacePositionCache::cache; +std::unordered_map> FacePositionCache::cache; Mutex FacePositionCache::cache_mutex; // Calculate the borders of a "d-radius" cube const std::vector &FacePositionCache::getFacePositions(u16 d) { MutexAutoLock lock(cache_mutex); - UNORDERED_MAP >::iterator it = cache.find(d); + std::unordered_map>::const_iterator it = cache.find(d); if (it != cache.end()) return it->second; -- cgit v1.2.3