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:
@@ -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
|
||||
|
Reference in New Issue
Block a user