diff --git a/src/core/model/ptr.h b/src/core/model/ptr.h index 9e4ad09ed..91e342d6c 100644 --- a/src/core/model/ptr.h +++ b/src/core/model/ptr.h @@ -317,7 +317,11 @@ bool operator != (Ptr const &lhs, Ptr const &rhs); template bool operator < (const Ptr &lhs, const Ptr &rhs); template -bool operator <= (const Ptr &lhs, const Ptr &rhs); +bool operator< (const Ptr &lhs, const Ptr &rhs); +template +bool operator< (const Ptr &lhs, const Ptr &rhs); +template +bool operator<= (const Ptr &lhs, const Ptr &rhs); template bool operator > (const Ptr &lhs, const Ptr &rhs); template @@ -476,7 +480,22 @@ bool operator < (const Ptr &lhs, const Ptr &rhs) } template -bool operator <= (const Ptr &lhs, const Ptr &rhs) +bool +operator< (const Ptr &lhs, const Ptr &rhs) +{ + return PeekPointer (lhs) < PeekPointer (rhs); +} + +template +bool +operator< (const Ptr &lhs, const Ptr &rhs) +{ + return PeekPointer (lhs) < PeekPointer (rhs); +} + +template +bool +operator<= (const Ptr &lhs, const Ptr &rhs) { return PeekPointer (lhs) <= PeekPointer (rhs); }