summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2Lib/SessionHelper.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-01-12 10:09:44 +0100
committerJose <jose@zeroc.com>2016-01-12 10:09:44 +0100
commit2688fda259617cda9eaee46530cc4bb63999d327 (patch)
treef9b203c82e69cd3028ef1f0ba3a6a22f371ee48b /cpp/src/Glacier2Lib/SessionHelper.cpp
parentFixed ICE-6960 - Ice/objects rpath issue to find TestCommon (diff)
downloadice-2688fda259617cda9eaee46530cc4bb63999d327.tar.bz2
ice-2688fda259617cda9eaee46530cc4bb63999d327.tar.xz
ice-2688fda259617cda9eaee46530cc4bb63999d327.zip
Remove C++14 usage and switch to -std=c++11
Diffstat (limited to 'cpp/src/Glacier2Lib/SessionHelper.cpp')
-rw-r--r--cpp/src/Glacier2Lib/SessionHelper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Glacier2Lib/SessionHelper.cpp b/cpp/src/Glacier2Lib/SessionHelper.cpp
index 2aebb4cfc30..1b1a630d3af 100644
--- a/cpp/src/Glacier2Lib/SessionHelper.cpp
+++ b/cpp/src/Glacier2Lib/SessionHelper.cpp
@@ -805,7 +805,8 @@ SessionHelperI::connected(const Glacier2::RouterPrxPtr& router, const Glacier2::
assert(connection);
connection->setACM(acmTimeout, IceUtil::None, Ice::HeartbeatAlways);
#ifdef ICE_CPP11_MAPPING
- connection->setCloseCallback([self = shared_from_this()](Ice::ConnectionPtr)
+ auto self = shared_from_this();
+ connection->setCloseCallback([self](Ice::ConnectionPtr)
{
self->destroy();
});