mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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
This commit is contained in:
parent
8df89db30e
commit
058a869b70
8 changed files with 54 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue