diff options
Diffstat (limited to 'cpp/include/Ice/ProxyHandle.h')
-rw-r--r-- | cpp/include/Ice/ProxyHandle.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h index 4b5e2055f0f..5b529ab6d56 100644 --- a/cpp/include/Ice/ProxyHandle.h +++ b/cpp/include/Ice/ProxyHandle.h @@ -182,54 +182,6 @@ public: } }; -template<typename T, typename U> -inline bool operator==(const ProxyHandle<T>& a, const ProxyHandle<U>& b) -{ - T* ap = a.get(); - U* bp = b.get(); - if (ap == bp) - { - return true; - } - else if (!ap) - { - assert(bp); - return false; - } - else - { - return *ap == *bp; - } -} - -template<typename T, typename U> -inline bool operator!=(const ProxyHandle<T>& a, const ProxyHandle<U>& b) -{ - return !operator==(a, b); -} - -template<typename T, typename U> -inline bool operator<(const ProxyHandle<T>& a, const ProxyHandle<U>& b) -{ - T* ap = a.get(); - U* bp = b.get(); - if (!ap || !bp) - { - if (!ap && bp) - { - return true; - } - else - { - return false; - } - } - else - { - return *a.get() < *b.get(); - } -} - } #endif |