summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/acm/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/acm/AllTests.cpp')
-rw-r--r--cpp/test/Ice/acm/AllTests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/Ice/acm/AllTests.cpp b/cpp/test/Ice/acm/AllTests.cpp
index 6223d4240ad..5fb112df140 100644
--- a/cpp/test/Ice/acm/AllTests.cpp
+++ b/cpp/test/Ice/acm/AllTests.cpp
@@ -199,13 +199,14 @@ public:
try
{
#ifdef ICE_CPP11_MAPPING
+ auto self = shared_from_this();
proxy->ice_getConnection()->setCloseCallback(
- [self = shared_from_this()](Ice::ConnectionPtr connection)
+ [self](Ice::ConnectionPtr connection)
{
self->closed(move(connection));
});
proxy->ice_getConnection()->setHeartbeatCallback(
- [self = shared_from_this()](Ice::ConnectionPtr connection)
+ [self](Ice::ConnectionPtr connection)
{
self->heartbeat(move(connection));
});