From a1d74d77254a1c9b9903d40394c135bc4e780787 Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Sat, 11 Apr 2009 06:01:06 +0000 Subject: [PATCH] Fixed bug 2747377 by changing order of operands. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1013 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/SmartPtr.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/loki/SmartPtr.h b/include/loki/SmartPtr.h index 911a8a0..79a2d19 100644 --- a/include/loki/SmartPtr.h +++ b/include/loki/SmartPtr.h @@ -1531,7 +1531,7 @@ namespace Loki > inline bool operator==(const SmartPtr& lhs, U* rhs) - { return GetImpl(lhs) == rhs; } + { return ( GetImpl( lhs ) == rhs ); } //////////////////////////////////////////////////////////////////////////////// /// operator== for lhs = raw pointer, rhs = SmartPtr @@ -1550,7 +1550,7 @@ namespace Loki > inline bool operator==(U* lhs, const SmartPtr& rhs) - { return rhs == lhs; } + { return ( GetImpl( rhs ) == lhs ); } //////////////////////////////////////////////////////////////////////////////// /// operator!= for lhs = SmartPtr, rhs = raw pointer @@ -1569,7 +1569,7 @@ namespace Loki > inline bool operator!=(const SmartPtr& lhs, U* rhs) - { return !(lhs == rhs); } + { return ( GetImpl( lhs ) != rhs ); } //////////////////////////////////////////////////////////////////////////////// /// operator!= for lhs = raw pointer, rhs = SmartPtr @@ -1588,7 +1588,7 @@ namespace Loki > inline bool operator!=(U* lhs, const SmartPtr& rhs) - { return rhs != lhs; } + { return ( GetImpl( rhs ) != lhs ); } //////////////////////////////////////////////////////////////////////////////// /// operator< for lhs = SmartPtr, rhs = raw pointer @@ -1629,7 +1629,7 @@ namespace Loki inline bool operator<(U* lhs, const SmartPtr& rhs) { - return ( GetImpl( rhs ) < lhs ); + return ( lhs < GetImpl( rhs ) ); } //////////////////////////////////////////////////////////////////////////////// @@ -1649,7 +1649,7 @@ namespace Loki > inline bool operator>(const SmartPtr& lhs, U* rhs) - { return rhs < lhs; } + { return rhs < GetImpl( lhs ); } //////////////////////////////////////////////////////////////////////////////// /// operator> for lhs = raw pointer, rhs = SmartPtr