summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Database.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2021-12-29 10:45:43 +0100
committerJose <jose@zeroc.com>2021-12-29 12:09:29 +0100
commit72dcb8749be9494563e035087d7a11c58d7458e1 (patch)
treeadb351d6ca284a0e9210d102cd2ed8b063ac6137 /cpp/src/IceGrid/Database.cpp
parentFixes for C++98 mapping build with C++17 mode or greater (diff)
downloadice-72dcb8749be9494563e035087d7a11c58d7458e1.tar.bz2
ice-72dcb8749be9494563e035087d7a11c58d7458e1.tar.xz
ice-72dcb8749be9494563e035087d7a11c58d7458e1.zip
Don't use auto with lambda methods
Diffstat (limited to 'cpp/src/IceGrid/Database.cpp')
-rw-r--r--cpp/src/IceGrid/Database.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp
index 7dcb555fb30..1552c823117 100644
--- a/cpp/src/IceGrid/Database.cpp
+++ b/cpp/src/IceGrid/Database.cpp
@@ -434,7 +434,7 @@ Database::syncApplications(const ApplicationInfoSeq& newApplications, Ice::Long
}
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) {it->sync(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) {it->sync(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::sync));
#endif
@@ -618,7 +618,7 @@ Database::addApplication(const ApplicationInfo& info, AdminSessionI* session, Ic
startUpdating(info.descriptor.name, info.uuid, info.revision);
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->sync(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->sync(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::sync));
#endif
@@ -676,7 +676,7 @@ Database::addApplication(const ApplicationInfo& info, AdminSessionI* session, Ic
txn.commit();
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->sync(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->sync(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::sync));
#endif
@@ -694,7 +694,7 @@ Database::addApplication(const ApplicationInfo& info, AdminSessionI* session, Ic
_applicationObserverTopic->waitForSyncedSubscribers(serial);
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->waitForSyncNoThrow(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->waitForSyncNoThrow(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::waitForSyncNoThrow));
#endif
@@ -886,7 +886,7 @@ Database::removeApplication(const string& name, AdminSessionI* session, Ice::Lon
startUpdating(name, appInfo.uuid, appInfo.revision);
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->sync(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->sync(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::sync));
#endif
@@ -2571,7 +2571,7 @@ Database::finishApplicationUpdate(const ApplicationUpdateInfo& update,
reload(previousAppHelper, appHelper, entries, oldApp.uuid, oldApp.revision + 1, noRestart);
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->sync(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->sync(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::sync));
#endif
@@ -2661,7 +2661,7 @@ Database::finishApplicationUpdate(const ApplicationUpdateInfo& update,
p->unmarkUpdated();
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->sync(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->sync(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::sync));
#endif
@@ -2669,7 +2669,7 @@ Database::finishApplicationUpdate(const ApplicationUpdateInfo& update,
}
_applicationObserverTopic->waitForSyncedSubscribers(serial); // Wait for subscriber to be updated.
#ifdef ICE_CPP11_COMPILER
- for_each(entries.begin(), entries.end(), [](const auto& it) { it->waitForSyncNoThrow(); });
+ for_each(entries.begin(), entries.end(), [](const ServerEntryPtr& it) { it->waitForSyncNoThrow(); });
#else
for_each(entries.begin(), entries.end(), IceUtil::voidMemFun(&ServerEntry::waitForSyncNoThrow));
#endif