summaryrefslogtreecommitdiff
path: root/cpp/src/IceDiscovery/LocatorI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceDiscovery/LocatorI.cpp')
-rw-r--r--cpp/src/IceDiscovery/LocatorI.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/IceDiscovery/LocatorI.cpp b/cpp/src/IceDiscovery/LocatorI.cpp
index 6998007fa14..99e1cdc4fa6 100644
--- a/cpp/src/IceDiscovery/LocatorI.cpp
+++ b/cpp/src/IceDiscovery/LocatorI.cpp
@@ -229,20 +229,20 @@ LocatorI::LocatorI(const LookupIPtr& lookup, const LocatorRegistryPrxPtr& regist
#ifdef ICE_CPP11_MAPPING
void
LocatorI::findObjectByIdAsync(Ice::Identity id,
- function<void(const shared_ptr<ObjectPrx>&)> response,
- function<void(exception_ptr)>,
- const Ice::Current&) const
+ function<void(const shared_ptr<ObjectPrx>&)> response,
+ function<void(exception_ptr)> ex,
+ const Ice::Current&) const
{
- _lookup->findObject(response, id);
+ _lookup->findObject(make_pair(response, ex), id);
}
void
LocatorI::findAdapterByIdAsync(string adapterId,
- function<void(const shared_ptr<ObjectPrx>&)> response,
- function<void(exception_ptr)>,
- const Ice::Current&) const
+ function<void(const shared_ptr<ObjectPrx>&)> response,
+ function<void(exception_ptr)> ex,
+ const Ice::Current&) const
{
- _lookup->findAdapter(response, adapterId);
+ _lookup->findAdapter(make_pair(response, ex), adapterId);
}
#else
void