diff options
Diffstat (limited to 'cpp/include/IceUtil/Handle.h')
-rw-r--r-- | cpp/include/IceUtil/Handle.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/Handle.h b/cpp/include/IceUtil/Handle.h index 5d9c91393d5..272cc5baef3 100644 --- a/cpp/include/IceUtil/Handle.h +++ b/cpp/include/IceUtil/Handle.h @@ -165,7 +165,7 @@ template<typename T, typename U> inline bool operator==(const Handle<T>& a, const Handle<U>& b) { T* ap = a.get(); - T* bp = b.get(); + U* bp = b.get(); if (ap == bp) { return true; @@ -185,7 +185,7 @@ template<typename T, typename U> inline bool operator<(const Handle<T>& a, const Handle<U>& b) { T* ap = a.get(); - T* bp = b.get(); + U* bp = b.get(); if (!ap || !bp) { if (!ap && bp) |