summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/dispatcher/Client.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-12-28 19:42:21 +0100
committerJose <jose@zeroc.com>2015-12-28 19:42:21 +0100
commit6e006573d5fb7bff5ec602c616b68a523d32b18d (patch)
tree6bf9bb78232b7eedaa0fa7410d0cf268d078f68d /cpp/test/Ice/dispatcher/Client.cpp
parentDon't run tests with bluetooth on non-Linux platforms (diff)
downloadice-6e006573d5fb7bff5ec602c616b68a523d32b18d.tar.bz2
ice-6e006573d5fb7bff5ec602c616b68a523d32b18d.tar.xz
ice-6e006573d5fb7bff5ec602c616b68a523d32b18d.zip
Remove C++11 extensions to C++98 mapping
Diffstat (limited to 'cpp/test/Ice/dispatcher/Client.cpp')
-rw-r--r--cpp/test/Ice/dispatcher/Client.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/cpp/test/Ice/dispatcher/Client.cpp b/cpp/test/Ice/dispatcher/Client.cpp
index 5bdcdfd2af2..117e3a089fc 100644
--- a/cpp/test/Ice/dispatcher/Client.cpp
+++ b/cpp/test/Ice/dispatcher/Client.cpp
@@ -63,19 +63,12 @@ main(int argc, char* argv[])
//
initData.properties->setProperty("Ice.TCP.SndSize", "50000");
-#if defined(ICE_CPP11_MAPPING)
+#ifdef ICE_CPP11_MAPPING
Ice::DispatcherPtr dispatcher = new Dispatcher();
initData.dispatcher = [=](function<void ()> call, const shared_ptr<Ice::Connection>& conn)
{
dispatcher->dispatch(new DispatcherCall(call), conn);
};
-#elif defined(ICE_CPP11_COMPILER)
- Ice::DispatcherPtr dispatcher = new Dispatcher();
- initData.dispatcher = Ice::newDispatcher(
- [=](const Ice::DispatcherCallPtr& call, const Ice::ConnectionPtr& conn)
- {
- dispatcher->dispatch(call, conn);
- });
#else
initData.dispatcher = new Dispatcher();
#endif