summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/OutgoingAsync.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/OutgoingAsync.h')
-rw-r--r--cpp/include/Ice/OutgoingAsync.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/include/Ice/OutgoingAsync.h b/cpp/include/Ice/OutgoingAsync.h
index df204b6a350..0a2edead961 100644
--- a/cpp/include/Ice/OutgoingAsync.h
+++ b/cpp/include/Ice/OutgoingAsync.h
@@ -23,10 +23,10 @@
#include <Ice/InputStream.h>
#include <Ice/ObserverHelper.h>
#include <Ice/LocalException.h>
+#include <IceUtil/UniquePtr.h>
#ifndef ICE_CPP11_MAPPING
# include <Ice/AsyncResult.h>
-# include <IceUtil/UniquePtr.h>
#endif
#include <exception>
@@ -163,16 +163,15 @@ protected:
#ifdef ICE_CPP11_MAPPING
std::mutex _m;
using Lock = std::lock_guard<std::mutex>;
- std::exception_ptr _ex;
- std::exception_ptr _cancellationException;
#else
IceUtil::Monitor<IceUtil::Mutex> _m;
typedef IceUtil::Monitor<IceUtil::Mutex>::Lock Lock;
- IceUtil::UniquePtr<Ice::Exception> _ex;
- IceUtil::UniquePtr<Ice::LocalException> _cancellationException;
Ice::LocalObjectPtr _cookie;
#endif
+ IceUtil::UniquePtr<Ice::Exception> _ex;
+ IceUtil::UniquePtr<Ice::LocalException> _cancellationException;
+
InvocationObserver _observer;
ObserverHelperT<Ice::Instrumentation::ChildInvocationObserver> _childObserver;