summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-13 09:26:05 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-13 09:26:05 -0800
commite6840a1863a2ed996d7fe66321d753e003d00375 (patch)
tree6058dfa6cd562677dd1c96fc61bce7eb25cbca20
parent78d5f1a803a7d201a8986f490d0905e7857615d4 (diff)
downloadinfinitytier-e6840a1863a2ed996d7fe66321d753e003d00375.tar.gz
infinitytier-e6840a1863a2ed996d7fe66321d753e003d00375.zip
Can't erase from vector using const_iterator on some C++ compilers.'
-rw-r--r--node/Topology.cpp2
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) {