diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-13 09:26:05 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-13 09:26:05 -0800 |
commit | e6840a1863a2ed996d7fe66321d753e003d00375 (patch) | |
tree | 6058dfa6cd562677dd1c96fc61bce7eb25cbca20 /node | |
parent | 78d5f1a803a7d201a8986f490d0905e7857615d4 (diff) | |
download | infinitytier-e6840a1863a2ed996d7fe66321d753e003d00375.tar.gz infinitytier-e6840a1863a2ed996d7fe66321d753e003d00375.zip |
Can't erase from vector using const_iterator on some C++ compilers.'
Diffstat (limited to 'node')
-rw-r--r-- | node/Topology.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp index d85b6a7d..8d0ed929 100644 --- a/node/Topology.cpp +++ b/node/Topology.cpp @@ -303,7 +303,7 @@ bool Topology::addWorld(const World &newWorld) *existing = newWorld; else return false; } else if (newWorld.type() == World::TYPE_MOON) { - for(std::vector< std::pair<uint64_t,Address> >::const_iterator m(_moonSeeds.begin());m!=_moonSeeds.end();++m) { + for(std::vector< std::pair<uint64_t,Address> >::iterator m(_moonSeeds.begin());m!=_moonSeeds.end();++m) { if (m->first == newWorld.id()) { for(std::vector<World::Root>::const_iterator r(newWorld.roots().begin());r!=newWorld.roots().end();++r) { if (r->identity.address() == m->second) { |