summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/IPEndpointI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/IPEndpointI.h')
-rw-r--r--cpp/src/Ice/IPEndpointI.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/IPEndpointI.h b/cpp/src/Ice/IPEndpointI.h
index 91263da5f39..396d25fdad8 100644
--- a/cpp/src/Ice/IPEndpointI.h
+++ b/cpp/src/Ice/IPEndpointI.h
@@ -62,8 +62,13 @@ public:
virtual ::Ice::Int hash() const;
virtual std::string options() const;
+#ifdef ICE_CPP11_MAPPING
+ virtual bool operator==(const EndpointI&) const;
+ virtual bool operator<(const EndpointI&) const;
+#else
virtual bool operator==(const Ice::LocalObject&) const;
virtual bool operator<(const Ice::LocalObject&) const;
+#endif
virtual std::vector<ConnectorPtr> connectors(const std::vector<Address>&, const NetworkProxyPtr&) const;
const std::string& host() const;
@@ -143,6 +148,7 @@ private:
#endif
};
+#ifndef ICE_CPP11_MAPPING
inline bool operator==(const IPEndpointI& l, const IPEndpointI& r)
{
return static_cast<const ::Ice::LocalObject&>(l) == static_cast<const ::Ice::LocalObject&>(r);
@@ -152,6 +158,7 @@ inline bool operator<(const IPEndpointI& l, const IPEndpointI& r)
{
return static_cast<const ::Ice::LocalObject&>(l) < static_cast<const ::Ice::LocalObject&>(r);
}
+#endif
}