summaryrefslogtreecommitdiff
path: root/src/nameidmapping.cpp
diff options
context:
space:
mode:
authorNer'zhul <nerzhul@users.noreply.github.com>2016-08-10 12:08:05 +0200
committerest31 <est31@users.noreply.github.com>2016-08-10 12:08:05 +0200
commit058a869b70072aba8baea47e359c45e82daaf152 (patch)
treeb0dd1820e89975d7172836d4861d9ab2ae2b472d /src/nameidmapping.cpp
parent8df89db30e80eff2ebbf30f0331b8ab4906a410e (diff)
downloadminetest-058a869b70072aba8baea47e359c45e82daaf152.tar.gz
minetest-058a869b70072aba8baea47e359c45e82daaf152.tar.bz2
minetest-058a869b70072aba8baea47e359c45e82daaf152.zip
Permit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)
This fallback to std::map & std::set for older compilers Use UNORDERED_SET as an example in decoration and ore biome sets Use UNORDERED_MAP as an example in nameidmapping
Diffstat (limited to 'src/nameidmapping.cpp')
-rw-r--r--src/nameidmapping.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nameidmapping.cpp b/src/nameidmapping.cpp
index ed59ddd16..2af8befff 100644
--- a/src/nameidmapping.cpp
+++ b/src/nameidmapping.cpp
@@ -25,7 +25,7 @@ void NameIdMapping::serialize(std::ostream &os) const
{
writeU8(os, 0); // version
writeU16(os, m_id_to_name.size());
- for(std::map<u16, std::string>::const_iterator
+ for(UNORDERED_MAP<u16, std::string>::const_iterator
i = m_id_to_name.begin();
i != m_id_to_name.end(); ++i){
writeU16(os, i->first);