]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/face_position_cache.h
C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)
[dragonfireclient.git] / src / face_position_cache.h
index c1d2841c44e485a8d1cd5e6371032f9865826ebd..5ea0d938b2e1c778cc0cc312942e830d825f83d5 100644 (file)
@@ -22,10 +22,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "irr_v3d.h"
 #include "threading/mutex.h"
-#include "util/cpp11_container.h"
 
 #include <map>
 #include <vector>
+#include <unordered_map>
 
 /*
  * This class permits caching getFacePosition call results.
@@ -37,7 +37,7 @@ class FacePositionCache {
 
 private:
        static const std::vector<v3s16> &generateFacePosition(u16 d);
-       static UNORDERED_MAP<u16, std::vector<v3s16> > cache;
+       static std::unordered_map<u16, std::vector<v3s16>> cache;
        static Mutex cache_mutex;
 };