diff options
Diffstat (limited to 'cpp/test/Ice/dispatcher/Collocated.cpp')
-rw-r--r-- | cpp/test/Ice/dispatcher/Collocated.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cpp/test/Ice/dispatcher/Collocated.cpp b/cpp/test/Ice/dispatcher/Collocated.cpp index afa55d366ba..8ea09bc118c 100644 --- a/cpp/test/Ice/dispatcher/Collocated.cpp +++ b/cpp/test/Ice/dispatcher/Collocated.cpp @@ -71,19 +71,12 @@ main(int argc, char* argv[]) { Ice::InitializationData initData; initData.properties = Ice::createProperties(argc, argv); -#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 |