Add support for OCCT 7.8.0 (#11909)

This commit is contained in:
bgbsww
2024-01-09 20:47:25 -05:00
committed by GitHub
parent b1ee268d98
commit bd1fc0fc03
29 changed files with 161 additions and 35 deletions

View File

@@ -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
}
};