Add support for OCCT 7.8.0 (#11909)
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <Mod/Mesh/App/Mesh.h>
|
||||
#include <Mod/MeshPart/MeshPartGlobal.h>
|
||||
|
||||
#include <Standard_Version.hxx>
|
||||
|
||||
namespace MeshCore
|
||||
{
|
||||
@@ -65,7 +66,12 @@ public:
|
||||
{
|
||||
bool operator()(const T& x, const T& y) const
|
||||
{
|
||||
#if OCC_VERSION_HEX >= 0x070800
|
||||
std::hash<T> hasher;
|
||||
return hasher(x) < hasher(y);
|
||||
#else
|
||||
return x.HashCode(INT_MAX - 1) < y.HashCode(INT_MAX - 1);
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user