summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/ProxyF.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/ProxyF.h')
-rw-r--r--cpp/include/Ice/ProxyF.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpp/include/Ice/ProxyF.h b/cpp/include/Ice/ProxyF.h
index a310540d7ee..2f0a5a223c9 100644
--- a/cpp/include/Ice/ProxyF.h
+++ b/cpp/include/Ice/ProxyF.h
@@ -15,6 +15,7 @@
#include <Ice/Config.h>
#include <Ice/ProxyHandle.h>
+#ifndef ICE_CPP11_MAPPING // C++98 mapping
namespace IceProxy
{
@@ -71,8 +72,32 @@ namespace Ice
{
typedef IceInternal::ProxyHandle< ::IceProxy::Ice::Object> ObjectPrx;
+typedef ObjectPrx ObjectPrxPtr;
}
+#else // C++11 mapping
+namespace Ice
+{
+
+class ObjectPrx;
+typedef ::std::shared_ptr<ObjectPrx> ObjectPrxPtr;
+
+}
+
+namespace IceProxy
+{
+
+namespace Ice
+{
+
+//
+// ObjectPrx alias for compatibility with C++98 mapping
+//
+typedef ::Ice::ObjectPrx Object;
+}
+
+}
+#endif
#endif