Fixes GCC8 FTBFS due to included copy of SMESH.

Patch by Kurt Kremitzki <kkremitzki@debian.org>

Been used in the Debian edition of FreeCAD since 2018.
This commit is contained in:
Petter Reinholdtsen
2023-06-30 17:59:41 +02:00
committed by Chris Hennes
parent 5647e54e4e
commit 0bb482ef59

View File

@@ -221,8 +221,8 @@ struct TIDTypeCompare {
// WARNING: this comparator makes impossible to store both nodes and elements in the same set
// because there are nodes and elements with the same ID. Use TIDTypeCompare for such containers.
struct TIDCompare {
bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2) const
{ return e1->GetID() < e2->GetID(); }
template<typename T> bool operator () (const T* e1, const T* e2) const
{ return static_cast<const SMDS_MeshElement*>(e1)->GetID() < static_cast<const SMDS_MeshElement*>(e2)->GetID(); }
};
#endif