diff options
author | Jose <jose@zeroc.com> | 2014-03-26 21:06:14 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-03-26 21:06:14 +0100 |
commit | 0dfa484392289fba697e790eea59972006b4bbbe (patch) | |
tree | 5e1b2140c9430c0ed54e08e6b14078cfbbbad069 /cpp | |
parent | Fixed (ICE-5505) - Outgoing ice_stackTrace only for __GNUC__ (diff) | |
download | ice-0dfa484392289fba697e790eea59972006b4bbbe.tar.bz2 ice-0dfa484392289fba697e790eea59972006b4bbbe.tar.xz ice-0dfa484392289fba697e790eea59972006b4bbbe.zip |
Fixed (ICE-5329) - Define operator<< in the type namespaces so argument dependent lookup can work
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/include/Ice/ProxyHandle.h | 4 | ||||
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h index 5578b9ff788..205471af7ee 100644 --- a/cpp/include/Ice/ProxyHandle.h +++ b/cpp/include/Ice/ProxyHandle.h @@ -314,12 +314,12 @@ public: } }; -} - template<class Y> std::ostream& operator<<(std::ostream& os, ::IceInternal::ProxyHandle<Y> p) { return os << (p ? p->ice_toString() : std::string("")); } +} + #endif diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 05dbdc32ab5..58abfc6472c 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -1435,12 +1435,22 @@ IceProxy::Ice::Object::__end(const ::Ice::AsyncResultPtr& __result, const std::s } } +namespace IceProxy +{ + +namespace Ice +{ + ostream& operator<<(ostream& os, const ::IceProxy::Ice::Object& p) { return os << p.ice_toString(); } +} + +} + Handle< ::IceDelegate::Ice::Object> IceProxy::Ice::Object::__getDelegate(bool ami) { |