diff options
author | Jose <jose@zeroc.com> | 2015-12-28 19:42:21 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-12-28 19:42:21 +0100 |
commit | 6e006573d5fb7bff5ec602c616b68a523d32b18d (patch) | |
tree | 6bf9bb78232b7eedaa0fa7410d0cf268d078f68d /cpp/src/Ice/Initialize.cpp | |
parent | Don't run tests with bluetooth on non-Linux platforms (diff) | |
download | ice-6e006573d5fb7bff5ec602c616b68a523d32b18d.tar.bz2 ice-6e006573d5fb7bff5ec602c616b68a523d32b18d.tar.xz ice-6e006573d5fb7bff5ec602c616b68a523d32b18d.zip |
Remove C++11 extensions to C++98 mapping
Diffstat (limited to 'cpp/src/Ice/Initialize.cpp')
-rw-r--r-- | cpp/src/Ice/Initialize.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/cpp/src/Ice/Initialize.cpp b/cpp/src/Ice/Initialize.cpp index b73d7e1810c..a524b3999f7 100644 --- a/cpp/src/Ice/Initialize.cpp +++ b/cpp/src/Ice/Initialize.cpp @@ -433,52 +433,3 @@ IceInternal::getInstanceTimer(const CommunicatorPtr& communicator) return p->_instance->timer(); } -#ifdef ICE_CPP11_COMPILER -Ice::DispatcherPtr -Ice::newDispatcher(const ::std::function<void (const DispatcherCallPtr&, const ConnectionPtr)>& cb) -{ - class Cpp11Dispatcher : public Dispatcher - { - public: - - Cpp11Dispatcher(const ::std::function<void (const DispatcherCallPtr&, const ConnectionPtr)>& cb) : - _cb(cb) - { - } - - virtual void dispatch(const DispatcherCallPtr& call, const ConnectionPtr& conn) - { - _cb(call, conn); - } - - private: - const ::std::function<void (const DispatcherCallPtr&, const ConnectionPtr)> _cb; - }; - - return new Cpp11Dispatcher(cb); -} - -Ice::BatchRequestInterceptorPtr -Ice::newBatchRequestInterceptor(const ::std::function<void (const BatchRequest&, int, int)>& cb) -{ - class Cpp11BatchRequestInterceptor : public BatchRequestInterceptor - { - public: - - Cpp11BatchRequestInterceptor(const ::std::function<void (const BatchRequest&, int, int)>& cb) : - _cb(cb) - { - } - - virtual void enqueue(const BatchRequest& request, int count, int size) - { - _cb(request, count, size); - } - - private: - const ::std::function<void (const BatchRequest&, int, int)> _cb; - }; - - return ICE_MAKE_SHARED(Cpp11BatchRequestInterceptor, cb); -} -#endif |