1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023310: No IsEqual function for Handles

IsEqual function for Handle(Standard_Transient) was added to global scope.
Getting rid of compilation errors (removed additional IsEqual functions)
This commit is contained in:
omy
2013-02-01 16:47:50 +04:00
parent 9e3758ca29
commit 024855ee13
5 changed files with 10 additions and 52 deletions

View File

@@ -236,6 +236,16 @@ private:
Standard_Transient *entity;
};
//! Function in global scope to check handles for equality.
//! Will be used with standard OCCT collections like NCollection_DataMap within NCollection_DefaultHasher
//! when there are no specialization defined for concrete type.
//! Notice that this implementation compares only pointers to objects!
inline Standard_Boolean IsEqual (const Handle(Standard_Transient)& theFirst,
const Handle(Standard_Transient)& theSecond)
{
return theFirst == theSecond;
}
#ifdef _WIN32
#pragma warning (pop)
#endif