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/ConnectionI.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/ConnectionI.cpp')
-rw-r--r-- | cpp/src/Ice/ConnectionI.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp index f86bf0e6b58..f3b191a8d6d 100644 --- a/cpp/src/Ice/ConnectionI.cpp +++ b/cpp/src/Ice/ConnectionI.cpp @@ -896,46 +896,6 @@ Ice::ConnectionI::begin_flushBatchRequests(const Callback_Connection_flushBatchR } AsyncResultPtr -Ice::ConnectionI::begin_flushBatchRequests(const IceInternal::Function<void (const Exception&)>& exception, - const IceInternal::Function<void (bool)>& sent) -{ -#ifdef ICE_CPP11_COMPILER - class Cpp11CB : public IceInternal::Cpp11FnCallbackNC - { - public: - - Cpp11CB(const IceInternal::Function<void (const Exception&)>& excb, - const IceInternal::Function<void (bool)>& sentcb) : - IceInternal::Cpp11FnCallbackNC(excb, sentcb) - { - CallbackBase::checkCallback(true, excb != nullptr); - } - - virtual void - completed(const AsyncResultPtr& __result) const - { - ConnectionPtr __con = __result->getConnection(); - assert(__con); - try - { - __con->end_flushBatchRequests(__result); - assert(false); - } - catch(const Exception& ex) - { - IceInternal::Cpp11FnCallbackNC::exception(__result, ex); - } - } - }; - - return __begin_flushBatchRequests(ICE_MAKE_SHARED(Cpp11CB, exception, sent), 0); -#else - assert(false); // Ice not built with C++11 support. - return 0; -#endif -} - -AsyncResultPtr Ice::ConnectionI::__begin_flushBatchRequests(const CallbackBasePtr& cb, const LocalObjectPtr& cookie) { ConnectionFlushBatchAsyncPtr result = new ConnectionFlushBatchAsync( |